Skip to content

Job with dynamic matrix crashes if matrix contains zero elements. How to resolve? #27096

Answered by mickeygousset
cagross asked this question in Actions
Discussion options

You must be logged in to vote

Try putting some sort of condition if statement on Job 2, where you do something like:

if: ${{ needs.Job-1.outputs.matrix != “” }}

something like that.

Replies: 5 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
1 reply
@dhanakane-vc
Comment options

Comment options

You must be logged in to vote
1 reply
@PoisonPhang
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants