Skip to content

Commit

Permalink
ci(badge): Push only when changes happened to badge
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz committed Jul 11, 2024
1 parent 676a62c commit 6c2ea9d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/tests_results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
- name: Generate badge
if: ${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }}
uses: jaywcjlove/generated-badges@main
uses: jaywcjlove/generated-badges@v1.0.13
with:
label: Runtime Tests
status: ${{ job.status }}
Expand All @@ -132,6 +132,8 @@ jobs:
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add --all
git commit -m "Updated runtime tests badge"
git push origin HEAD:gh-pages
if [[ `git status --porcelain` ]]; then
git add --all
git commit -m "Updated runtime tests badge"
git push origin HEAD:gh-pages
fi

0 comments on commit 6c2ea9d

Please sign in to comment.