Skip to content

How to use workflow env variables in job ifs? #27144

Answered by Simran-B
aleks-ivanov asked this question in Actions
Discussion options

You must be logged in to vote

There’s a conflicting statement about the env context:

You can only use the env context in the value of the with and name keys, or in a step’s if conditional.

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:

A map of environment variables that are available to the steps of all jobs in the workflow.

Replies: 3 comments

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants