Unable to use env
variable inside of matrix definition
#26388
-
In a larger workflow yml file, the following snippet of code causes an error with my workflow. I can’t figure out why, though. Is there a valid reason for this to cause an error? Since my Can somebody help me fix this, or is it a workflow bug?
Github gives me the following error for the line above
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The documentation on the
So I’m afraid accessing |
Beta Was this translation helpful? Give feedback.
-
Ah ok! Thanks for pointing that out. Everywhere else I tried to use it, it worked, so I didn’t realize it had such limited applicability. |
Beta Was this translation helpful? Give feedback.
-
It would be nice if it were more generally applicable. It’s nice to use as a “constant” definition at the top of the file, so I don’t have to go chasing down places all throughout the file to change values (and possibly miss some instances where a value needs to be changed.) |
Beta Was this translation helpful? Give feedback.
The documentation on the
env
context says this:So I’m afraid accessing
env
variables in a matrix definition is not supported.