-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
(bug) fromJSON leading to a yaml unmarshal error #284
Comments
This is the first thing I got after reading about act and installing it, and that is more than an a month old. The error doesn't even mention the file causing the error! I had to guess. I run it inside https://github.com/ansible/ansible-lint/blob/master/.github/workflows/tox.yml which does not even have any fromJson in it. I hope someone looks over it because the act idea is brilliatn, but nobody wants a tool that crashes on first run. |
+1 |
Issue is stale and will be closed in 7 days unless there is new activity |
Bump |
Got the same issue right after installing the act. Both error lines are like of the previous commenters: |
Any workaround? |
Issue is stale and will be closed in 7 days unless there is new activity |
Well I'm still having this issue and it's a blocking one so I guess it shouldn't be closed |
This is also blocking for my workflow when working with the runs-on: ubuntu-20.04
strategy:
matrix:
package: ${{ fromJson(needs.provide_packages_json.outputs.matrix) }} Error: ❯ act -l
Error: yaml: unmarshal errors:
line 88: cannot unmarshal !!str `${{ fro...` into []interface {} |
@tzusman @ShayNehmad-RecoLabs could any of you provide full workflow that I can debug on? |
Issue is stale and will be closed in 14 days unless there is new activity |
I think the cause of this error is that YAML parser expects the type Strategy struct {
FailFast bool `yaml:"fail-fast"`
MaxParallel int `yaml:"max-parallel"`
Matrix map[string][]interface{} `yaml:"matrix"`
}
// https://github.com/nektos/act/blob/master/pkg/model/workflow.go#L76 Would change the Matrix field from |
Issue is stale and will be closed in 14 days unless there is new activity |
+1 |
This part of my GitHub Action workflow is confirmed to work on Github, but not through act:
The
deployments
output looks something like this:The text was updated successfully, but these errors were encountered: