Skip to content

Commit 0f65bc3

Browse files
committed
ci: properly handle an empty strategy matrix
Signed-off-by: Niccolò Fei <[email protected]>
1 parent 836fcef commit 0f65bc3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/bake.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,20 @@ jobs:
3838
with:
3939
base: ${{ (github.event_name == 'schedule') && 'main' || '' }}
4040
filters: |
41+
shared: &shared
42+
- 'docker-bake.hcl'
43+
- 'Makefile'
44+
- 'kind-config.yaml'
45+
- 'test/**'
4146
pgvector:
4247
- 'pgvector/**'
48+
- *shared
4349
postgis:
4450
- 'postgis/**'
51+
- *shared
4552
pgaudit:
4653
- 'pgaudit/**'
54+
- *shared
4755
4856
# Compute a matrix containing the list of all extensions that have been modified
4957
- name: Compute matrix
@@ -68,6 +76,7 @@ jobs:
6876
contents: read
6977
id-token: write
7078
security-events: write
79+
if: ${{ join(fromJSON(needs.change-triage.outputs.matrix).name) != '' }}
7180
strategy:
7281
fail-fast: false
7382
matrix: ${{ fromJSON(needs.change-triage.outputs.matrix) }}

0 commit comments

Comments
 (0)