github-script icon indicating copy to clipboard operation
github-script copied to clipboard

SyntaxError: Unexpected string

Open root-ansh-ct opened this issue 2 years ago • 3 comments

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:

  1. Clone this repo
  2. add some changes to CHANGELOG.md (any text addition/removal would do)
  3. push to your branch
  4. See error in action.yml

Expected behavior the variable is setup successfully is able to be accessed by other composite actions

Screenshots image

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

root-ansh-ct avatar Sep 30 '22 11:09 root-ansh-ct

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.

stevematney avatar Jan 13 '23 23:01 stevematney

👋 @root-ansh-ct are you still experiencing this issue?

Could you provide logs and the specific section of your workflow that's failing?

joshmgross avatar Jan 26 '23 17:01 joshmgross