Skip to content

Commit b43ab28

Browse files
committed
Add filter-changes step
1 parent 0eaccf1 commit b43ab28

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/pre-pull-images.yaml

+18-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
pull_request:
77
branches:
88
- main
9-
paths:
10-
- kubernetes/apps/**
11-
- kubernetes/flux/**
129

1310
concurrency:
1411
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
@@ -18,9 +15,27 @@ env:
1815
HOMEBREW_NO_ANALYTICS: "1"
1916

2017
jobs:
18+
filter-changes:
19+
name: Filter changes
20+
runs-on: ubuntu-latest
21+
outputs:
22+
any_changed: ${{ steps.changed-files.outputs.any_changed }}
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Get Changed Files
28+
id: changed-files
29+
uses: tj-actions/changed-files@v45
30+
with:
31+
files: kubernetes/**
32+
2133
extract-images:
34+
if: ${{ needs.filter-changes.outputs.any_changed == 'true' }}
2235
name: Extract Images
2336
runs-on: ubuntu-latest
37+
needs:
38+
- filter-changes
2439
strategy:
2540
matrix:
2641
branches:

0 commit comments

Comments
 (0)