github.com/nektos/act@v0.2.63/pkg/runner/testdata/evalmatrix/push.yml (about)

     1  on: push
     2  jobs:
     3    evalm:
     4      strategy:
     5        matrix: |-
     6          ${{fromJson('
     7            {
     8              "A": [ "A", "B" ]
     9            }
    10          ')}}
    11      runs-on: ubuntu-latest
    12      steps:
    13      - name: Check if the matrix key A exists
    14        run: |
    15          echo $MATRIX
    16          exit ${{matrix.A && '0' || '1'}}
    17        env:
    18          MATRIX: ${{toJSON(matrix)}}
    19    _additionalInclude_0:
    20      strategy:
    21        matrix:
    22          include:
    23          - def: val
    24      runs-on: ubuntu-latest
    25      steps:
    26      - name: Check if the matrix key A exists
    27        run: |
    28          echo $MATRIX
    29          exit ${{matrix.def == 'val' && '0' || '1'}}
    30        env:
    31          MATRIX: ${{toJSON(matrix)}}
    32      - run: |
    33          echo "::set-output name=result::success"
    34        id: result
    35      outputs:
    36        result: ${{ steps.result.outputs.result }}
    37    _additionalInclude_1:
    38      needs: _additionalInclude_0
    39      if: always()
    40      runs-on: ubuntu-latest
    41      steps:
    42      - name: Check if the matrix key A exists
    43        run: |
    44          echo $MATRIX
    45          exit ${{needs._additionalInclude_0.outputs.result == 'success' && '0' || '1'}}
    46    _additionalProperties_0:
    47      strategy:
    48        matrix:
    49          x:
    50          - 0
    51          y:
    52          - 0
    53          z:
    54          - 0
    55          include:
    56          - def: val
    57            z: 0
    58      runs-on: ubuntu-latest
    59      steps:
    60      - name: Check if the matrix key A exists
    61        run: |
    62          echo $MATRIX
    63          exit ${{matrix.def == 'val' && matrix.x == 0 && matrix.y == 0 && matrix.z == 0 && '0' || '1'}}
    64        env:
    65          MATRIX: ${{toJSON(matrix)}}
    66      - run: |
    67          echo "::set-output name=result::success"
    68        id: result
    69      outputs:
    70        result: ${{ steps.result.outputs.result }}
    71    _additionalProperties_1:
    72      needs: _additionalProperties_0
    73      if: always()
    74      runs-on: ubuntu-latest
    75      steps:
    76      - name: Check if the matrix key A exists
    77        run: |
    78          echo $MATRIX
    79          exit ${{needs._additionalProperties_0.outputs.result == 'success' && '0' || '1'}}