From f4c0e7261e7de60083bd38555adae5ea71be8c56 Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Tue, 23 Apr 2024 20:21:22 +0000 Subject: [PATCH] Use correct var --- .github/workflows/reusable-update-pre-commit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable-update-pre-commit.yml b/.github/workflows/reusable-update-pre-commit.yml index 870df70..16a4cf8 100644 --- a/.github/workflows/reusable-update-pre-commit.yml +++ b/.github/workflows/reusable-update-pre-commit.yml @@ -42,12 +42,12 @@ jobs: - name: Check for changes id: git_status run: | - git diff --quiet ${{ env.path }} && echo "changed=false" >> $GITHUB_STATE || echo "changed=true" >> $GITHUB_STATE + cd ${{ env.path }} + git diff --quiet ${{ env.path }} && echo "changed=false" >> $GITHUB_OUTPUT || echo "changed=true" >> $GITHUB_OUTPUT - name: There are changes if: steps.git_status.outputs.changed == 'true' run: | - echo "Files have changed" cd ${{ env.path }} git diff --exit-code || true