Wrong examle for "printing context information to the log" help page #12599
Unanswered
T3rm1
asked this question in
Other Feature Feedback, Questions, & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Page: https://docs.github.com/en/actions/learn-github-actions/contexts#example-printing-context-information-to-the-log
The example is
run: echo '${{ toJSON(github) }}'. However this does not work as soon as any property ingithubobject contains a single quote. And it appears there is no function to make a string replace in order to escape such single quotes.This will always end in the error:
line <number>: unexpected EOF while looking for matching"'`Beta Was this translation helpful? Give feedback.
All reactions