mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #927] Issue: Dynamic Matrix not working #550
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#550
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 @aurimasniekis on GitHub (Dec 14, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/927
System information
act:actversion: act version HEAD-cad4bc8Expected behaviour
The following workflow file should work, the matrix dynamic value should be evaluated after the first job is done and passed to matrix of second job.
Actual behaviour
Matrix is not evaluated
Workflow and/or repository
workflow
Steps to reproduce
actoutputLog
@github-actions[bot] commented on GitHub (Jan 14, 2022):
Issue is stale and will be closed in 14 days unless there is new activity
@aurimasniekis commented on GitHub (Jan 14, 2022):
Any update?
@ChristopherHX commented on GitHub (Jan 14, 2022):
The output of this line doesn't seem to work for me with actions/runner
It stores value
"{"package": ["a", "b"]}"in output matrix => syntax error after evaluating the matrix.I need to change it to
Actually no, at least not for nektos/act. I can confirm this bug in act. After fixing the error above, you can use my runner.server utillity to execute it locally like you would expect. I know that my utillity is slower than act, but faster than GitHub Actions.
Log of a run via runner.server
@Meroje commented on GitHub (Jan 21, 2022):
This was fixed by #700 then broken by #763, using 0.2.24 works.
@ChristopherHX commented on GitHub (Jan 23, 2022):
I opened a Pull Request https://github.com/nektos/act/pull/964 to provide even better dynamic matrix support as in act 0.2.24.
Including 3 tests to enshure that this feature doesn't break again without notice.
@ilons commented on GitHub (Feb 10, 2022):
To add some more details on things that does not work related to dynamic matrix.
matrix:Gives:
Simply prints empty line.
Both of those cases executes as 2 separate jobs on GHA, printing
aandb.@MostefaKamalLala commented on GitHub (Feb 10, 2022):
I just installed nektos/act and I experienced the same error. I have a workflow similar to @ilons 's last post's first example.
Job 1 sets up the matrix. Job 2 uses the output of Job 1 wrapped in
fromJsonfunction in the matrix definition.