How to use workflow env variables in job ifs? #27144
-
This returns an error: “Unrecognized named-value: ‘env’”
This works. According to the GitHub Docs:
What am I missing ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
There’s a conflicting statement about the env context:
The other section might need to be changed to:
|
Beta Was this translation helpful? Give feedback.
-
Thank you. It definitely works the way it is explained in the link you provided. |
Beta Was this translation helpful? Give feedback.
-
My PR to make clear that the env context is only available in steps just landed: Actions: env context cannot be used in job.<job_id>.if (#1803) · github/docs@ad5c362 · GitHub |
Beta Was this translation helpful? Give feedback.
There’s a conflicting statement about the env context:
https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#env-context
The other section might need to be changed to: