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
The example is run: echo '${{ toJSON(github) }}'. However this does not work as soon as any property in github object 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 "'`
DocumentationArticles, instructions, and discussions around GitHub's docsGeneralGeneral topics and discussions that don't fit into other categories, but are related to GitHub
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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