File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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/**'
You can’t perform that action at this time.
0 commit comments