mirror of
https://github.com/nektos/act.git
synced 2026-04-27 01:45:52 +03:00
[GH-ISSUE #1533] Add support for >> $GITHUB_STEP_SUMMARY #776
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#776
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 @jontze on GitHub (Dec 22, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1533
Act version
0.2.34
Feature description
With the usage of
$GITHUB_STEP_SUMMARYin workflows it's possible to generate markdown files as a summary of a job like this:The usage is pretty similar to
$GITHUB_ENVor$GITHUB_OUTPUT.Ref.: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary
However, act fails on this point, because the
$GITHUB_STEP_SUMMARYvariable is not set:I don't think that
actshould actually generate a markdown file as well, IMO it's enough to just ensure that the workflow doesn't fail if the syntax is used.Thanks for the cool project ❤️
@mottet commented on GitHub (Jan 18, 2023):
Looks like
$GITHUB_STEP_SUMMARYis unset so the redirection points to nothing and fails.I use a workaround to have the summary working in Github Action and not crashing in Act :
With the
-wI check if$GITHUB_STEP_SUMMARYvalue is the path to a writable file and only if it is true the right part of&&whould be executed.I think manually setting the value
$GITHUB_STEP_SUMMARYcould also work but I didn't tried.@shubhbapna commented on GitHub (Feb 2, 2023):
You should be able to simply set this using the env flag. This way you will have control as to where you want the summary to be written to. For eg:
@sarthak77 commented on GitHub (Apr 26, 2023):
What is the fix for this? I'm still getting the same error. Should we explicitly set the
$GITHUB_STEP_SUMMARYvariable?@sarthak77 commented on GitHub (May 2, 2023):
@catthehacker @cplee can you respond on this?
@jsoref commented on GitHub (Apr 4, 2024):
If you run with
act -r, then you can use something like: