Skip to content

Commit bf879d1

Browse files
author
Genevieve Nuebel
committed
Update the detect changes once more
1 parent b06d419 commit bf879d1

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/on-push-master.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,20 @@ jobs:
3232
3333
# Detect which API versions were modified
3434
# Uses dorny/paths-filter to check which version directories changed.
35-
# For push events: paths-filter uses github.event.before/after automatically.
36-
# For repository_dispatch events: both push and dispatch target master (same branch),
37-
# so we compare HEAD against HEAD~1 to detect changes from the just-pushed commit.
35+
# For push events: default base (empty) uses github.event.before/after automatically.
36+
# For repository_dispatch events: setting base to 'master' (same branch) triggers
37+
# paths-filter's "last commit" comparison mode per the docs.
3838
detect-changes:
3939
runs-on: ubuntu-latest
4040
outputs:
4141
v20111101: ${{ steps.filter.outputs.v20111101 }}
4242
v20250224: ${{ steps.filter.outputs.v20250224 }}
4343
steps:
4444
- uses: actions/checkout@v3
45-
with:
46-
fetch-depth: 2
4745
- uses: dorny/paths-filter@v2
4846
id: filter
4947
with:
50-
base: ${{ github.event_name == 'repository_dispatch' && 'HEAD~1' || '' }}
48+
base: ${{ github.event_name == 'repository_dispatch' && 'master' || '' }}
5149
filters: |
5250
v20111101:
5351
- 'v20111101/**'

0 commit comments

Comments
 (0)