Skip to content

Commit

Permalink
add empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
fatz committed Nov 13, 2024
1 parent b03fdcc commit 325d394
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
strategy:
fail-fast: false
outputs:
matrix: ${{ steps.build-os-matrix.outputs.matrix || steps.build-os-matrix-single.outputs.matrix || '[]' }}
matrix: ${{ steps.build-os-matrix.outputs.matrix || steps.build-os-matrix-single.outputs.matrix || steps.empty-os-matrix.outputs.matrix }}
steps:
# build output json from os inputs list
- name: Build OS matrix for all OS
Expand All @@ -62,6 +62,10 @@ jobs:
id: build-os-matrix-single
run: |
echo "::set-output name=matrix::$(jq -n --arg os_list "${{ github.event.inputs.os }}" '$os_list | split(",")')"
- name: Empty OS matrix
id: empty-os-matrix
run: |
echo "::set-output name=matrix::[]"
base_image_tests:
runs-on:
Expand Down

0 comments on commit 325d394

Please sign in to comment.