Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/on-push-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,20 @@ jobs:

# Detect which API versions were modified
# Uses dorny/paths-filter to check which version directories changed.
# For push events: paths-filter uses github.event.before/after automatically.
# For repository_dispatch events: both push and dispatch target master (same branch),
# so we compare HEAD against HEAD~1 to detect changes from the just-pushed commit.
# For push events: default base (empty) uses github.event.before/after automatically.
# For repository_dispatch events: setting base to 'master' (same branch) triggers
# paths-filter's "last commit" comparison mode per the docs.
detect-changes:
runs-on: ubuntu-latest
outputs:
v20111101: ${{ steps.filter.outputs.v20111101 }}
v20250224: ${{ steps.filter.outputs.v20250224 }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: dorny/paths-filter@v2
id: filter
with:
base: ${{ github.event_name == 'repository_dispatch' && 'HEAD~1' || '' }}
base: ${{ github.event_name == 'repository_dispatch' && 'master' || '' }}
filters: |
v20111101:
- 'v20111101/**'
Expand Down