Changed verify diff command to capture new files

This commit is contained in:
Brandon Rozek 2022-12-12 11:17:06 -05:00
parent 60f0bf9fa4
commit 911cb37a81

View file

@ -25,7 +25,7 @@ jobs:
- name: Check if there's any changes - name: Check if there's any changes
id: verify_diff id: verify_diff
run: | run: |
git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT if [ -n "$(git status --porcelain)" ]; then echo "changed=true" || tee -a $GITHUB_OUTPUT; fi
- name: Commit and push - name: Commit and push
if: steps.verify_diff.outputs.changed == 'true' if: steps.verify_diff.outputs.changed == 'true'