Conditionally run a step only if a secret is defined? #25735
-
I’d like to add a step to my workflow which only runs if a specific named secret has been defined. I tried this but it didn’t work:
|
Beta Was this translation helpful? Give feedback.
Answered by
weide-zhou
Jun 22, 2020
Replies: 2 comments
-
Hi @simonw, Please use below format instead.
Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
-
To check if the secret which is converted into an For example:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @simonw,
Please use below format instead.
secrets.*
is not recognized in if expression. You can set it as env and read viaenv.*
.Thanks