Skip to content

Commit

Permalink
Fixed Prettier GH Action
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitrrine committed Dec 8, 2023
1 parent ef707f9 commit b3fec05
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ jobs:
- name: Check for changes
id: check_changes
run: |
git diff --exit-code || echo "Changes detected"
if [[ -n "$(git status --porcelain)" ]]; then
echo "Changes detected"
else
echo "No changes"
fi
- name: Format code
if: steps.check_changes.outputs.result == 'Changes detected'
Expand Down

0 comments on commit b3fec05

Please sign in to comment.