diff --git a/.github/workflows/build-workflow.yml b/.github/workflows/build-workflow.yml index ef3f729..f9a052a 100644 --- a/.github/workflows/build-workflow.yml +++ b/.github/workflows/build-workflow.yml @@ -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 'mxndtaylor@users.noreply.github.com' @@ -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 'mxndtaylor@users.noreply.github.com' + pdm badges-only + git commit -am "Update Badges" + git push diff --git a/badges/timestamp.txt b/badges/timestamp.txt index 82a3ef4..5a86d03 100644 --- a/badges/timestamp.txt +++ b/badges/timestamp.txt @@ -1 +1 @@ -Sun Jun 2 23:08:54 UTC 2024 +Sun Jun 2 23:18:31 UTC 2024