Skip to content

Commit

Permalink
add ability to update badges on develop during push (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxndtaylor authored Jun 2, 2024
2 parents 8c61c11 + 0f08819 commit bd30343
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion badges/timestamp.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Sun Jun 2 23:08:54 UTC 2024
Sun Jun 2 23:18:31 UTC 2024

0 comments on commit bd30343

Please sign in to comment.