Skip to content

Commit

Permalink
ci: Fix path filter in reporter workflow (#4654)
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian authored Feb 12, 2025
1 parent 52735c8 commit 2e85690
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/pr-reporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ jobs:
- uses: dorny/paths-filter@v3
id: filter
with:
ref: ${{ github.event.workflow_run.head_sha }}
# As this Workflow is triggered by a `workflow_run` event, the filter action
# can't automatically assume we're working with PR data. As such, we need to
# wire it up manually with a base (merge target) and ref (source branch).
base: ${{ github.event.workflow_run.pull_requests[0].base.sha }}
ref: ${{ github.event.workflow_run.pull_requests[0].head.sha }}
# Should be kept in sync with the filter in the CI workflow
filters: |
jsChanged: '**/src/**/*.js'
Expand Down

0 comments on commit 2e85690

Please sign in to comment.