Skip to content

Commit

Permalink
if git diff fails -- we exit right away -- do ||
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed May 3, 2024
1 parent 664ea04 commit e387366
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/update-table.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ jobs:
- name: Check for changes in README.md
id: git-check
run: |
git diff --exit-code README.md
echo "README_CHANGED=$?" >> $GITHUB_ENV
git diff --exit-code README.md || echo "README_CHANGED=$?" >> $GITHUB_ENV
- name: Commit changes
if: env.README_CHANGED == '1'
Expand Down

0 comments on commit e387366

Please sign in to comment.