Describe the bug
When trying to use ${{ toJson(github) }} when there is a ' in the commit message, you get an error. The error looks like,
unexpected EOF while looking for matching `"'
To Reproduce
Steps to reproduce the behavior:
- Have a workflow bash script that tries to run ${{ toJson(github) }} that runs on a PR
- Leave a commit message including a ' character
- Trigger the workflow by opening a PR
- You should see the toJson step fail with the error message above.
Expected behavior
Expected to see the full pretty printed github context
Runner Version and Platform
Current runner version: '2.287.1'
OS of the machine running the runner? OSX/Windows/Linux/...
Ubuntu
20.04.3
LTS
What's not working?
toJson expression
Job Log Output
unexpected EOF while looking for matching `"'