Skip to content

Commit 2e85690

Browse files
authored
ci: Fix path filter in reporter workflow (#4654)
1 parent 52735c8 commit 2e85690

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/pr-reporter.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ jobs:
2222
- uses: dorny/paths-filter@v3
2323
id: filter
2424
with:
25-
ref: ${{ github.event.workflow_run.head_sha }}
25+
# As this Workflow is triggered by a `workflow_run` event, the filter action
26+
# can't automatically assume we're working with PR data. As such, we need to
27+
# wire it up manually with a base (merge target) and ref (source branch).
28+
base: ${{ github.event.workflow_run.pull_requests[0].base.sha }}
29+
ref: ${{ github.event.workflow_run.pull_requests[0].head.sha }}
2630
# Should be kept in sync with the filter in the CI workflow
2731
filters: |
2832
jsChanged: '**/src/**/*.js'

0 commit comments

Comments
 (0)