Error when comparing github.actor to string in if statement #27015
Answered
by
weide-zhou
danielinclouds
asked this question in
Actions
-
Hey, I’m getting an error when trying to compare github.actor to my username in the if statement. This is the error I’m getting:
My goal is to: * only run action if my user pushed the code
|
Beta Was this translation helpful? Give feedback.
Answered by
weide-zhou
May 6, 2020
Replies: 2 comments
-
Hi @danielinclouds , The error is due to double quotes are used for username, please use single quote, code as below:
Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
-
Thanks, that fixed my problem. |
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 @danielinclouds ,
The error is due to double quotes are used for username, please use single quote, code as below:
Thanks.