Skip to content

Commit b65171f

Browse files
grokspawnclaude
andcommitted
CI: pass through on non-catalog PRs instead of not running
Replace the paths filter with dorny/paths-filter to detect catalog changes at runtime. Non-catalog PRs now get a passing CI status (skipped build job) instead of no status at all. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3058843 commit b65171f

1 file changed

Lines changed: 20 additions & 5 deletions

File tree

.github/workflows/build-verify-on-PR.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,33 @@ on:
44
pull_request:
55
branches:
66
- '**'
7-
paths:
8-
- 'catalog/**'
97

108
jobs:
9+
check-changes:
10+
runs-on: ubuntu-latest
11+
outputs:
12+
catalog_changed: ${{ steps.filter.outputs.catalog }}
13+
steps:
14+
- name: Check out
15+
uses: actions/checkout@v2
16+
17+
- name: Check for catalog changes
18+
uses: dorny/paths-filter@v3
19+
id: filter
20+
with:
21+
filters: |
22+
catalog:
23+
- 'catalog/**'
24+
1125
build:
26+
needs: check-changes
27+
if: needs.check-changes.outputs.catalog_changed == 'true'
1228
runs-on: ubuntu-latest
13-
29+
1430
steps:
1531
- name: Check out
1632
uses: actions/checkout@v2
17-
33+
1834
# models a future action where the submittor is validated against auth access for the
1935
# catalog contribution
2036
- name: Validate Contributor
@@ -37,4 +53,3 @@ jobs:
3753
token: ${{ secrets.GH_PAT }}
3854
pull-request-number: ${{ github.event.pull_request.number }}
3955
merge-method: merge
40-

0 commit comments

Comments
 (0)