Skip to content

Test Github Actions Dynamic Matrix #2

Test Github Actions Dynamic Matrix

Test Github Actions Dynamic Matrix #2

Workflow file for this run

name: Test Github Actions Dynamic Matrix
on:
workflow_dispatch:
jobs:
setup:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.value }}
steps:
- id: matrix
run: |
echo "value=[\"a\", \"b\", \"c\"]" >> $GITHUB_OUTPUT
- run: |
echo "${{ steps.matrix.outputs.value }}"
build:
needs: [ setup ]
runs-on: ubuntu-latest
strategy:
matrix:
value: ${{fromJSON(needs.setup.outputs.matrix)}}
steps:
- run: |
echo "${{ matrix.value }}"