Skip to content

Commit

Permalink
Fix exit code in format workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Feb 3, 2025
1 parent 219868b commit 7ef9d94
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,8 @@ jobs:
- name: Check for changes
id: check-for-changes
run: |
git diff --exit-code
if [ $? -eq 0 ]; then
run: |
if git diff --exit-code > /dev/null 2>&1; then
echo "any=false" >> $GITHUB_OUTPUT
else
echo "any=true" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 7ef9d94

Please sign in to comment.