github-script
github-script copied to clipboard
SyntaxError: Unexpected string
Describe the bug Getting Error 'Unexpected string' when trying to set an integer on environment variable .not sure why. my goals is to skip tests and other actions if the associated files are not changed
To Reproduce Steps to reproduce the behavior: either check this action logs and composite action that is part of the main workflow , or:
- Clone this repo
- add some changes to CHANGELOG.md (any text addition/removal would do)
- push to your branch
- See error in action.yml
Expected behavior the variable is setup successfully is able to be accessed by other composite actions
Screenshots
Desktop (please complete the following information):
- OS: ubuntu latest
Additional context I actually wanted to use boolean variables here, but neither integer nor boolean variable works
I don't know exactly the root cause of this issue, but I had the same problem and was able to clear this error when I removed result-encoding: string
on a previous step from which I was setting an environment variable in the failing step.
👋 @root-ansh-ct are you still experiencing this issue?
Could you provide logs and the specific section of your workflow that's failing?