Skip to content

Matrix variable does not work in needs keyword #25364

Answered by Yanjingzhu
pmatos asked this question in Actions
Discussion options

You must be logged in to vote

Github workflow yml doesn’t support use ${{matrix.xx}} in needs keyword. I would suggest you to specific all jobs name into the matrix job > needs keyword.

For example, you have jobs: build-normal , build-extra and build-nox.

In test job with matrix, set

needs: [build-normal, build-extra, build-nox]

Then the matrix jobs will start after all the dependences jobs completed.

Replies: 7 comments 2 replies

Comment options

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

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ChristopherHX
Comment options

@mortalisk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
8 participants