Skip to content

Commit afea342

Browse files
author
marwan37
committed
add a condition to skip the build-or-generate job if the matrix is empty
1 parent 526dba0 commit afea342

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/build-push-codespace.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
build-or-generate:
6565
needs: detect-changes
6666
runs-on: ubuntu-latest
67+
if: ${{ fromJson(needs.detect-changes.outputs.matrix)[0] != null }}
6768
strategy:
6869
matrix:
6970
project: ${{ fromJson(needs.detect-changes.outputs.matrix) }}

0 commit comments

Comments
 (0)