We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3accd56 commit feb6593Copy full SHA for feb6593
1 file changed
.github/workflows/coverage_readme.yml
@@ -59,10 +59,9 @@ jobs:
59
run: |
60
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
61
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
+ - name: Commit & Push changes to Readme
+ if: ${{ github.ref == 'refs/heads/main' }}
+ uses: actions-js/push@master
+ with:
+ message: Update coverage on Readme
+ github_token: ${{ secrets.GITHUB_TOKEN }}
0 commit comments