Skip to content

Commit

Permalink
Fix paths for autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Apr 23, 2024
1 parent ef8719d commit 38e02f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/reusable-update-pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ jobs:
- name: Check for changes
id: git_status
run: |
git diff --quiet && echo "::set-output name=changed::false" || echo "::set-output name=changed::true"
git diff --quiet ${{ env.path }} && echo "::set-output name=changed::false" || echo "::set-output name=changed::true"
- name: There are changes
if: steps.git_status.outputs.changed == 'true'
run: |
echo "Files have changed"
git diff --exit-code || true
git diff --exit-code ${{ env.path }} || true
- name: No changes!
if: steps.git_status.outputs.changed == 'false'
Expand All @@ -66,3 +66,4 @@ jobs:
body: This pull request contains auto-updated files of the pre-commit config. @ros-controls/ros2-maintainers please run the pre-commit workflow manually on the branch `auto-update-${{ github.event.inputs.ref_for_scheduled_build }}` before merging.
delete-branch: true
draft: true
path: ${{ env.path }}

0 comments on commit 38e02f1

Please sign in to comment.