Skip to content

Commit

Permalink
add ability to update badges on develop during push
Browse files Browse the repository at this point in the history
  • Loading branch information
mxndtaylor committed Jun 2, 2024
1 parent af546b8 commit 2e58163
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
if: ${{ !cancelled() }}
run: pdm style
- name: Badges
if: ${{ !cancelled() }}
if: ${{ !cancelled() && github.event_name == 'pull_request' }}
run: |
git config --global user.name 'Auto'
git config --global user.email '[email protected]'
Expand All @@ -92,3 +92,11 @@ jobs:
pdm badges-only
git commit -am "Update Badges"
git push
- name: Badges
if: ${{ !cancelled() && github.event_name == 'push' }}
run: |
git config --global user.name 'Auto'
git config --global user.email '[email protected]'
pdm badges-only
git commit -am "Update Badges"
git push

0 comments on commit 2e58163

Please sign in to comment.