Skip to content

GitHub Actions If contains function not working with env.VARIABLE #26516

Answered by gomfucius
gomfucius asked this question in Actions
Discussion options

You must be logged in to vote

I had to remove the ${{}}, this works:

if: contains(env.PROJECT_TO_TEST, 'SomeString')

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