Skip to content

Commit

Permalink
Use correct var
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Apr 23, 2024
1 parent 1cf119c commit f4c0e72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/reusable-update-pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f4c0e72

Please sign in to comment.