github.com/nektos/act@v0.2.63/pkg/runner/testdata/evalmatrixneeds2/push.yml (about) 1 on: push 2 jobs: 3 prepare: 4 runs-on: ubuntu-latest 5 steps: 6 - run: | 7 echo '::set-output name=matrix::["a", "b"]' 8 id: r1 9 outputs: 10 matrix: ${{steps.r1.outputs.matrix}} 11 helix: steady 12 evalm: 13 needs: 14 - prepare 15 strategy: 16 matrix: 17 ${{needs.prepare.outputs.helix}}: |- 18 ${{fromJson(needs.prepare.outputs.matrix)}} 19 runs-on: ubuntu-latest 20 steps: 21 - name: Check if the matrix key doesn't ends up unevaluated 22 run: | 23 echo $MATRIX 24 exit ${{matrix['${{needs.prepare.outputs.helix}}'] && '1' || '0'}} 25 env: 26 MATRIX: ${{toJSON(matrix)}} 27 - name: Check if the evaluated matrix key contains a value 28 run: | 29 exit ${{matrix[needs.prepare.outputs.helix] && '0' || '1'}}