Skip to content

Commit

Permalink
try to fix build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
pmacius committed Nov 5, 2024
1 parent 855f8d5 commit 244f1aa
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/reusuable_build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,20 +121,21 @@ jobs:
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
outputs:
matrix_json: ${{ steps.compose-values.outputs.matrix_json }}
matrix_json: ${{ steps.compose-values.outputs.matrix_json }}
steps:
- name: Calculate values for compose
id: compose-values
run: |
echo "matrix_json=$(
if [[ '${{ inputs.acs_version }}' == '23' ]]; then
matrix_json=$(
if [[ '${{ inputs.acs_version }}' == '23' ]]; then
jq -n '{"edition": ["enterprise", "community"]}'
elif [[ '${{ inputs.acs_version }}' == '74' ]]; then
elif [[ '${{ inputs.acs_version }}' == '74' ]]; then
jq -n '{"edition": ["74"]}'
else
else
jq -n '{"edition": []}'
fi
)" >> $GITHUB_OUTPUT
fi
)
echo "matrix_json=$matrix_json" >> $GITHUB_OUTPUT
compose-test:
needs: build-matrix
Expand Down

0 comments on commit 244f1aa

Please sign in to comment.