mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #2447] ERRO[0010] Error while evaluating matrix: Invalid JSON: invalid character '$' looking for beginning of value #1124
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1124
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @brianjmurrell on GitHub (Sep 10, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2447
Bug report info
Command used with act
Describe issue
When a job is skipped due to a
needsbeing skipped, it doesn't actually skip but instead emits an error from the job:Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
In this run that emits the error,
Calc-rpm-build-matrixis skipped, soBuild-RPMshould be also but clearly it's not since the line 298 being complained about is the line:from the
strategy->matrixin the workflow snippet above.If the error and cause from what I have provided is not obvious enough, I will see if I can distill down my complicated workflows into a simple reproducer.
@ChristopherHX commented on GitHub (Sep 10, 2024):
Yes this is a known issue at least for me and has been raised a few times, order of if and matrix is incorrect.
Keep in mind I can't handle this issue tracker alone and long standing issues like this get down priotised by me as my usecase doesn't depend on this part of act
@brianjmurrell commented on GitHub (Sep 10, 2024):
Am I understanding correctly that you are suggesting that I need to moveA little experiment here seems to confirm that is the case.strategybeforeif:?I was not aware that there was ordering specifics in GitHub's workflow files. TIL. Is there any documentation on the ordering specifics so that I don't fall into this trap again because it seems I have a different job that is being executed in act that does not get executed on GitHub:
when
Create-symlinksis skipped.Understood. I did check the issue log before opening this issue but I didn't see anything matching. Maybe my search was just not good enough.
@ChristopherHX commented on GitHub (Sep 10, 2024):
No order in yaml doesn't matter, act's evaluation order of the parsed job is inverted compared to GitHub Actions
@brianjmurrell commented on GitHub (Sep 10, 2024):
So what does that mean for the job I pasted above? What statements do I have out of order for act in that one?
@ChristopherHX commented on GitHub (Sep 10, 2024):
Act has a bug, not your workflow
English is my foreign language, expect issues with my language skills of explaining what I mean
@brianjmurrell commented on GitHub (Sep 10, 2024):
Ahhh. OK. Is it an existing issue that this could be closed as a duplicate of and that I can subscribe to?
Your English is excellent. I suspect the low-bandwidth of the medium has more to do with any misunderstandings than your English.
@ChristopherHX commented on GitHub (Sep 11, 2024):
Yes, but no I don't have a quick lookup table to tell you the number.
In such an issue chaos I sometimes not even reference all reports of the bug I fix in some PR, so some never get notified.
The stale bot might have closed the issue already without any fix.
@ChristopherHX commented on GitHub (Sep 26, 2024):
Duplicate of https://github.com/nektos/act/issues/1482, but not on my planning board