Skip to content

Commit

Permalink
Modified test.yml to not fail on no formatting
Browse files Browse the repository at this point in the history
`test.yml` now only attempts a commit and push if the automated
formatting actually changed any files.
  • Loading branch information
gvrooyen committed Aug 24, 2024
1 parent aa92d6e commit 92817bc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,4 @@ jobs:
run: |
git config --global user.name 'G-J van Rooyen'
git config --global user.email 'gvrooyen@gmail.com'
git add .
git commit -m "Automated formatting"
git push
git diff --quiet && git diff --staged quiet || git commit -am "Automated formatting" && git push

0 comments on commit 92817bc

Please sign in to comment.