Skip to content

Commit ef2181f

Browse files
ci: Fix detect change job (#1158)
### ci: Fix detect change job ### Linked issues none ### Summarize your change. Add missing actions/checkout step before dorny/paths-filter in the detect-changes job in ci.yml. ### Describe the reason for the change. The detect-changes job fails on push, schedule, and workflow_dispatch events with the error: `fatal: not a git repository (or any of the parent directories): .git` ` dorny/paths-filter` can work without a checkout on pull_request events (using the GitHub API), but on push, schedule, and workflow_dispatch events it requires a local git repository to compare commits. The checkout step was missing, causing the job to fail after merging to main. ### Describe what you have tested and on which operating system. CI Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
1 parent 0e7b3e6 commit ef2181f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
outputs:
2828
cmake_changed: ${{ steps.filter.outputs.cmake }}
2929
steps:
30+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
3031
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
3132
id: filter
3233
with:

0 commit comments

Comments
 (0)