[GH-ISSUE #350] [Bugs] ReferenceError: 'fromJSON' is not defined #249

Closed
opened 2026-03-01 21:41:46 +03:00 by kerem · 0 comments
Owner

Originally created by @theowenyoung on GitHub (Sep 1, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/350

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

Originally created by @theowenyoung on GitHub (Sep 1, 2020). Original GitHub issue: https://github.com/nektos/act/issues/350 ```yaml 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: ```bash 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
kerem closed this issue 2026-03-01 21:41:46 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#249
No description provided.