Skip to content

Include strategy matrix property based on existing matrix nested object #26779

Discussion options

You must be logged in to vote

Surprise surprise, I actually didn’t check this current way of doing it, and it actually works ^^’.
I think the include checks if the matrix entry has a property called name, and if it’s the same value. If so, the new_property is added.

If anyone was wondering about sharing the same matrix across jobs, I used this way of doing it.

If that link somehow dies in the future, here is the job that does it:

matrix-builder:
    runs-on: ubuntu-latest
    if: github.event_name == 'push'
    outputs:
      matrix: ${{ steps.set-matrix.outputs.matrix }}
    steps:
    - uses: actions/checkout@v2
    - name: Assign the matrix from matrix.json
      id: set-matrix
      run: |
        TASKS=$(echo $(c…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants