-
Hi, I’ve a need for literal
This either ends up with this error:
Or with the braces / backslashes remaining literal in the string. I’ve not found any documentation about how to achieve this… |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
There might be tricks to avoid having the dollar sign next to the braces, but depending on the concrete situation it may or may not be possible to let it evaluate to The only generic solution I can think of is to use an expression that returns it as a string:
|
Beta Was this translation helpful? Give feedback.
-
Thanks @Simran-B, that worked indeed! |
Beta Was this translation helpful? Give feedback.
-
Tried @Simran-B solution and got this This worked for me
|
Beta Was this translation helpful? Give feedback.
-
I have successfully used this in the description of an action input in an action.yaml. The action runs. Perhaps other informational strings in the action.yaml and/or generic workflows can use this:
Note that:
|
Beta Was this translation helpful? Give feedback.
There might be tricks to avoid having the dollar sign next to the braces, but depending on the concrete situation it may or may not be possible to let it evaluate to
${{VAR}}
in the end.The only generic solution I can think of is to use an expression that returns it as a string:
${{ '${{VAR}}' }}