Skip to content

Commit c77eed1

Browse files
authored
Merge pull request #22 from grokspawn/ci-passthrough-non-catalog
CI: pass through on non-catalog PRs
2 parents 3058843 + b65171f commit c77eed1

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)