From b3fec05f957e26161e5342ef4749378a51d16648 Mon Sep 17 00:00:00 2001 From: Nitrrine <43351072+Nitrrine@users.noreply.github.com> Date: Fri, 8 Dec 2023 23:16:25 +0600 Subject: [PATCH] Fixed Prettier GH Action --- .github/workflows/prettier.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 117ba49..3fa9e0a 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -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'