act: (bug) fromJSON leading to a yaml unmarshal error
This part of my GitHub Action workflow is confirmed to work on Github, but not through act:
strategy:
matrix: ${{ fromJson(needs.deployments.outputs.deployments) }}
act -l
Error: yaml: unmarshal errors:
line 153: cannot unmarshal !!str `${{ fro...` into map[string][]interface {}
The deployments
output looks something like this:
[
{ "region": "us", "key": "value" },
{ "region": "eu", "key": "value2" }
]
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 29
- Comments: 15 (6 by maintainers)
Well I’m still having this issue and it’s a blocking one so I guess it shouldn’t be closed
@CatTheHacker My example is based on https://tomasvotruba.com/blog/2020/11/16/how-to-make-dynamic-matrix-in-github-actions/