Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bugs] ReferenceError: 'fromJSON' is not defined #350

Closed
theowenyoung opened this issue Sep 1, 2020 · 0 comments · Fixed by #352
Closed

[Bugs] ReferenceError: 'fromJSON' is not defined #350

theowenyoung opened this issue Sep 1, 2020 · 0 comments · Fixed by #352

Comments

@theowenyoung
Copy link
Contributor

theowenyoung commented Sep 1, 2020

on:
  push:
env:
  TEST: '{"outputs":{"test":"value1"}}'
jobs:
  print_0:
    name: Print 0
    runs-on: ubuntu-latest
    steps:
      - name: Print Outputs
        env:
          text: ${{ fromJSON(env.TEST).outputs.test }}
        run: |
          echo text: $text

get error:

Unable to interpolate string '${{ fromJSON(env.TEST).outputs.test }}' - [ReferenceError: 'fromJSON' is not defined]

Github actions docs about fromJson: https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#fromjson

relative issue: #284

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant