Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Test Github Actions Dynamic Matrix #1

Test Github Actions Dynamic Matrix

Test Github Actions Dynamic Matrix #1

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 }}"