-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
area/workflowRelating to workflow definitionsRelating to workflow definitionskind/bugSomething isn't workingSomething isn't working
Description
One example job in the GitHub Actions documentation uses toJson and it works when run on GitHub, but not when run by act.
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
runs fine on GitHub, but act complains:
[test/test] ⭐ Run Dump GitHub context
ERRO[0001] Unable to interpolate string '${{ toJson(github) }}' - [ReferenceError: 'toJson' is not defined]
| ${{ toJson(github) }}
Metadata
Metadata
Assignees
Labels
area/workflowRelating to workflow definitionsRelating to workflow definitionskind/bugSomething isn't workingSomething isn't working