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)

Most upvoted comments

Well I’m still having this issue and it’s a blocking one so I guess it shouldn’t be closed