Skip to content

Commit 70c8398

Browse files
Only build products with changed files
1 parent b037232 commit 70c8398

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,25 @@ on:
66
- master
77

88
jobs:
9+
changes:
10+
runs-on: ubuntu-latest
11+
outputs:
12+
1.1.1.1: ${{ steps.filter.outputs.1.1.1.1 }}
13+
access: ${{ steps.filter.outputs.access }}
14+
steps:
15+
- uses: dorny/paths-filter@v2
16+
id: filter
17+
with:
18+
filters: |
19+
1.1.1.1:
20+
- 'products/1.1.1.1/**'
21+
access:
22+
- 'products/access/**'
23+
924
deploy-1-1-1-1:
1025
runs-on: ubuntu-latest
26+
needs: changes
27+
if: ${{ needs.changes.outputs.1.1.1.1 == 'true' }}
1128
defaults:
1229
run:
1330
shell: bash
@@ -29,6 +46,8 @@ jobs:
2946

3047
deploy-access:
3148
runs-on: ubuntu-latest
49+
needs: changes
50+
if: ${{ needs.changes.outputs.access == 'true' }}
3251
defaults:
3352
run:
3453
shell: bash

0 commit comments

Comments
 (0)