Skip to content

Commit

Permalink
Ok
Browse files Browse the repository at this point in the history
  • Loading branch information
OhMyGuus committed Dec 25, 2023
1 parent b429ec3 commit 6e9e4af
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
- name: Check for changes
id: changes
run: |
git diff --name-only --exit-code HEAD^ HEAD | grep -vE 'package-lock.json'
echo "::set-output name=has_changes::$(git status --porcelain)"
git diff --exit-code
- name: Fail if changes found
if: steps.changes.outputs.has_changes != ''
run: |
if [ -n "${{ steps.changes.outputs.stdout }}" ]; then
echo "There are changes after running Prettier. Please run Prettier locally and commit the changes.";
exit 1;
fi
echo "There are changes after running Prettier. Please run Prettier locally and commit the changes."
exit 1

0 comments on commit 6e9e4af

Please sign in to comment.