You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was following the Tips and Tricks page to do variable substitution yq e ".a.b = \"$myvalue\"" file.yaml and it works locally in the command line. However I am having some issue to get it work with Github Action.
Example
I created a simple yaml and workflow file here.
I am just trying to replace a value in yml file with:
I was following the Tips and Tricks page to do variable substitution
yq e ".a.b = \"$myvalue\"" file.yaml
and it works locally in the command line. However I am having some issue to get it work with Github Action.Example
I created a simple yaml and workflow file here.
I am just trying to replace a value in yml file with:
For completeness,
test.yml
looks like this:And it fails with the following. The log can also accessed here.
The only way I could get this to work is the following. (example commit and workflow log)
I looked through the code at yq/github-action and it is just passing in the argument.
Am I doing anything wrong? Or is the github action not able to escape
\"
properly?The text was updated successfully, but these errors were encountered: