-
I have a composite run steps action that takes a few inputs, for which I provide default values. I’m running into problems with special characters; for example, my default string contains a single quote and ends with a colon. According to my reading of the YAML spec (and articles like this one), I should be able to single quote the string and escape the inner single quote by doubling it:
However, when I use this action and don’t provide a value for
which seems to be an error from the shell – and indeed, when I modify the string so it can be safely expanded by the shell, as in
which becomes Similarly, trying to use a default string with a markdown link:
results in an error
which can be avoided by preparing the string so it still is single quoted after YAML expansion:
which apparently becomes Is this expected? It feels like there’s an unexpected unquoted shell expansion happening somewhere, or the behaviour isn’t documented. In any case, it’s surprising behaviour. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There indeed was an unquoted expansion, but I caused it myself… the composite run steps action had this
which should quote the parameters:
|
Beta Was this translation helpful? Give feedback.
There indeed was an unquoted expansion, but I caused it myself… the composite run steps action had this
runs
value:which should quote the parameters: