[GH-ISSUE #2759] Add Command Files Content as part of the step completion events #1250

Closed
opened 2026-03-01 21:49:56 +03:00 by kerem · 8 comments
Owner

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, main and `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?

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`, `main` and `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 https://github.com/nektos/act/blob/324bab61f056e7e103b142b4c2f8b3b34421d764/pkg/runner/step.go#L157 WDYT?
kerem 2026-03-01 21:49:56 +03:00
Author
Owner

@qoomon commented on GitHub (May 16, 2025):

This adjustment would really supports my development of my parallel-steps action.

<!-- gh-comment-id:2885869448 --> @qoomon commented on GitHub (May 16, 2025): This adjustment would really supports my development of my parallel-steps action.
Author
Owner

@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?

<!-- gh-comment-id:2888078505 --> @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?
Author
Owner

@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

<!-- gh-comment-id:2888343445 --> @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_
Author
Owner

@qoomon commented on GitHub (May 18, 2025):

GITHUB_ENV and GITHUB_OUTPUT are all mapped to old set-env and set-output and are logged as plain text

awesome that worked, thanks a lot. The only bummer is that GITHUB_STEP_SUMMARYis not supported so far

<!-- gh-comment-id:2889145951 --> @qoomon commented on GitHub (May 18, 2025): > GITHUB_ENV and GITHUB_OUTPUT are all mapped to old set-env and set-output and are logged as plain text awesome that worked, thanks a lot. The only bummer is that `GITHUB_STEP_SUMMARY`is not supported so far
Author
Owner

@qoomon commented on GitHub (May 18, 2025):

@ChristopherHX looking forward to the branch getting merged :-D

<!-- gh-comment-id:2889146698 --> @qoomon commented on GitHub (May 18, 2025): @ChristopherHX looking forward to the branch getting merged :-D
Author
Owner

@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 :-(

<!-- gh-comment-id:2889147269 --> @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 :-(
Author
Owner

@qoomon commented on GitHub (May 18, 2025):

feel free to try qoomon/actions--parallel-steps@main

<!-- gh-comment-id:2889147519 --> @qoomon commented on GitHub (May 18, 2025): feel free to try [qoomon/actions--parallel-steps@main](https://github.com/qoomon/actions--parallel-steps)
Author
Owner

@qoomon commented on GitHub (May 18, 2025):

@ChristopherHX and thanks a lot for your work ❤️

<!-- gh-comment-id:2889151110 --> @qoomon commented on GitHub (May 18, 2025): @ChristopherHX and thanks a lot for your work ❤️
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1250
No description provided.