-
Couldn't load subscription status.
- Fork 3.4k
Checkout repo before running path-filter job #27093
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,6 +53,12 @@ jobs: | |
| docs: ${{ steps.filter.outputs.docs }} | ||
| non_docs: ${{ steps.filter.outputs.non_docs }} | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| with: | ||
| ref: | | ||
| ${{ github.event_name == 'repository_dispatch' && | ||
| github.event.client_payload.pull_request.head.sha == github.event.client_payload.slash_command.args.named.sha && | ||
| format('refs/pull/{0}/head', github.event.client_payload.pull_request.number) || '' }} | ||
|
Comment on lines
+58
to
+61
|
||
| - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3 | ||
| id: filter | ||
| with: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't work correctly.
It will detect no changes, and then jobs won't run.
see
ciworkflow onmaster#27094