no dashes

This commit is contained in:
Elio Bischof
2024-11-27 13:25:06 +01:00
parent fab9206e7e
commit ef7fd863a5

View File

@@ -26,15 +26,15 @@ on:
required: false required: false
jobs: jobs:
prepare-matrix: matrix:
# If the workflow is triggered by a schedule event, only the acceptance tests run against QA and Prod. # If the workflow is triggered by a schedule event, only the acceptance tests run against QA and Prod.
name: Prepare Matrix name: Matrix
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
matrix: ${{ steps.prepare-matrix.outputs.matrix }} matrix: ${{ steps.matrix.outputs.matrix }}
steps: steps:
- name: Prepare Matrix - name: Matrix
id: prepare-matrix id: matrix
run: | run: |
if [ -z "${{ github.event.schedule }}" ]; then if [ -z "${{ github.event.schedule }}" ]; then
echo 'matrix=["test:acceptance:qa", "test:acceptance:prod"]' >> $GITHUB_OUTPUT echo 'matrix=["test:acceptance:qa", "test:acceptance:prod"]' >> $GITHUB_OUTPUT
@@ -46,16 +46,16 @@ jobs:
echo 'matrix=["format --check", "lint", "test:unit", "test:integration", "test:acceptance"]' >> $GITHUB_OUTPUT echo 'matrix=["format --check", "lint", "test:unit", "test:integration", "test:acceptance"]' >> $GITHUB_OUTPUT
fi fi
- name: Show Matrix - name: Show Matrix
run: echo '${{ steps.prepare-matrix.outputs.matrix }}' run: echo '${{ steps.matrix.outputs.matrix }}'
debug: debug:
name: Debug matrix name: Debug matrix
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Debug matrix - name: Debug matrix
run: echo ${{ needs.prepare-matrix.outputs.matrix }} run: echo ${{ needs.matrix.outputs.matrix }}
- name: Debug fromJson - name: Debug fromJson
run: echo ${{ fromJson(needs.prepare-matrix.outputs.matrix) }} run: echo ${{ fromJson(needs.matrix.outputs.matrix) }}
quality: quality:
@@ -71,7 +71,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
command: ${{ fromJson( needs.prepare-matrix.outputs.matrix ) }} command: ${{ fromJson( needs.matrix.outputs.matrix ) }}
steps: steps:
- name: Checkout Repo - name: Checkout Repo