Skip to content

Commit

Permalink
Only create a new commit if stats changed
Browse files Browse the repository at this point in the history
  • Loading branch information
TSRBerry committed Oct 20, 2023
1 parent 9944dcc commit d589cb7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/label-stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,21 @@ jobs:
${{ steps.stats.outputs.result }}
$EOF
- name: Commit stats
- name: Configure git
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Check if files have been modified
id: mod_check
run: |
[[ $(git status -s | wc -l) -le 1 ]] \
&& echo "is-dirty=false" >> "$GITHUB_OUTPUT" \
|| echo "is-dirty=true" >> "$GITHUB_OUTPUT"
- name: Commit and push stats
if: steps.mod_check.outputs.is-dirty == 'true'
run: |
git add .
git commit -m "Update compat-stats.json"
git push

1 comment on commit d589cb7

@Fortnitegeek
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m done with testing combat reload 2 and kung foo soccer there both fun

Please sign in to comment.