Skip to content

Commit

Permalink
Update error condition
Browse files Browse the repository at this point in the history
  • Loading branch information
pavinduLakshan committed Jul 29, 2024
1 parent 13ecff0 commit dfb6fbc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/pr-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ jobs:
- name: Install dependencies
run: |
yarn
git diff --exit-code > /dev/null
if [ $? -ne 0 ]; then
if ! git diff --exit-code > /dev/null 2>&1; then
echo "ERR! There are modified files after running yarn."
exit 1
fi
Expand Down

0 comments on commit dfb6fbc

Please sign in to comment.