mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #2759] Add Command Files Content as part of the step completion events #1250
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#1250
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 @qoomon on GitHub (May 16, 2025).
Original GitHub issue: https://github.com/nektos/act/issues/2759
Act version
0.2.76
Feature description
Hi, I'm currently developing an action run steps in parallel see https://github.com/qoomon/actions--parallel-steps
I utilize act for all the heavy lifting. Everything works quite well, I'm using an artifical action to intercept the stages
pre,mainand `post``The only things that I can't intercept or retrieve are the contents of the command files like (e.g. $GITHUB_ENV). Thats because the command files will be cleaned before every step execution.
The my prefered solution would to just include the command files content within the json event output of
act.Thanks in advance
Update:
Probably implementing is as easy as add command file contents to this json log line
github.com/nektos/act@324bab61f0/pkg/runner/step.go (L157)WDYT?
@qoomon commented on GitHub (May 16, 2025):
This adjustment would really supports my development of my parallel-steps action.
@qoomon commented on GitHub (May 17, 2025):
Or another easy solution that would solve my current issue would be to create step specific command files without overwriting the last one for example adding a simple uuid to the file names.
And thx for this awesome piece of tool
Would you accept a PR for this uuid solution?
@ChristopherHX commented on GitHub (May 17, 2025):
GITHUB_ENV and GITHUB_OUTPUT are all mapped to old set-env and set-output and are logged as plain text
e.g. I think https://github.com/nektos/act/tree/log-parsed-commands-and-summary this should work for you?
additional logging in the json logger, so you do not need to parse machine unreadable lines
I am not an owner here and cannot merge my own PRs without other members, so take everything I say with a grain of salt
@qoomon commented on GitHub (May 18, 2025):
awesome that worked, thanks a lot. The only bummer is that
GITHUB_STEP_SUMMARYis not supported so far@qoomon commented on GitHub (May 18, 2025):
@ChristopherHX looking forward to the branch getting merged :-D
@qoomon commented on GitHub (May 18, 2025):
@ChristopherHX now my action works, last thing I'm waiting for ist https://github.com/nektos/act/issues/2756 Until then I need to start multiple act processes :-(
@qoomon commented on GitHub (May 18, 2025):
feel free to try qoomon/actions--parallel-steps@main
@qoomon commented on GitHub (May 18, 2025):
@ChristopherHX and thanks a lot for your work ❤️