Skip to content

Commit feb6593

Browse files
committed
Update push step
1 parent 3accd56 commit feb6593

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/coverage_readme.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ jobs:
5959
run: |
6060
sed -i '/<!-- Pytest Coverage Comment:Begin -->/,/<!-- Pytest Coverage Comment:End -->/c\<!-- Pytest Coverage Comment:Begin -->\n\${{ steps.coverageComment.outputs.coverageHtml }}\n<!-- Pytest Coverage Comment:End -->' ./README.md
6161
62-
- name: Commit & Push changes to README
63-
run: |
64-
git config --global user.name 'github-actions[bot]'
65-
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
66-
git add README.md
67-
git commit -m 'Update coverage badge in README'
68-
git push
62+
- name: Commit & Push changes to Readme
63+
if: ${{ github.ref == 'refs/heads/main' }}
64+
uses: actions-js/push@master
65+
with:
66+
message: Update coverage on Readme
67+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)