Replies: 2 comments 32 replies
-
Probably not, because the exact structure of both the JSON and how the matrix is initialized from is critical here. I've seen enough people use the approach, so most likely something is slightly off. |
Beta Was this translation helpful? Give feedback.
4 replies
-
For anybody interested, here's the ticket - https://support.github.com/ticket/personal/0/1776040 |
Beta Was this translation helpful? Give feedback.
28 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey.
I'm using 2-level nested re-usable workflows, so the main workflow M calls workflow A that calls another workflow B. M runs a job that forms a JSON that's passed as a string to A. A then has two jobs: first, JOB1, calls B with matrix strategy, reading matrix with
fromJson
; second, JOB2, has some explicit steps defined, also with matrix strategy from the exact same matrix. JOB2needs
JOB1.Now the funny thing is, as soon as I introduce JOB1 into the workflow A, it fails claiming it can't render the strategy (specific details ommitted):
So from the error message it seems that the matrix string is empty and can't be parsed. However the debug output (just echoing the string) in a separate job shows it's a perfectly valid JSON. As soon as I comment out JOB1, JOB2 runs perfectly with literally no other changes. If I change the aforementioned debug job to also use the matrix strategy and make it needed for JOB2, everything runs once again. If I call workflow B directly from workflow M, it also works.
I can't really show a minimal reproducible example right now, but perhaps the description is enough. If it helps, I'll add it later.
UPD: please see the minimal reproducible example here: https://github.com/orgs/community/discussions/32023#discussioncomment-3561655
Beta Was this translation helpful? Give feedback.
All reactions