Skip to content

Commit

Permalink
only commit if there are unstaged changes
Browse files Browse the repository at this point in the history
  • Loading branch information
skedwards88 committed Nov 5, 2023
1 parent da7def2 commit 600041b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ jobs:
# This keeps package-lock.json up to date with the deployed game
- name: Commit the word list update if there are changes to commit
run: |-
if git diff-index --quiet HEAD --; then
echo "No changes to commit."
if git diff --exit-code > /dev/null; then
echo "No changes to commit."
else
git add -A
git commit -m "Update @skedwards88/word_lists"
Expand Down

0 comments on commit 600041b

Please sign in to comment.