Unable to use env variable in Github Actions if statement #24958
-
I am trying to run a simple workflow like this.
However, I get an error
I am not able to access the env variable string in the if statement. How can solve this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Environment variables aren’t persistent across jobs, you’ll need to use job outputs for that: docs.github.comWorkflow syntax for GitHub Actions - GitHub Docs//docs.github.com/en/actions/reference/workflow-syntax-for-github-actions |
Beta Was this translation helpful? Give feedback.
Environment variables aren’t persistent across jobs, you’ll need to use job outputs for that:

docs.github.comWorkflow syntax for GitHub Actions - GitHub Docs
//docs.github.com/en/actions/reference/workflow-syntax-for-github-actions