mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #963] Issue: ::set::output does not work in an action (but does in a workflow) #566
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#566
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 @DanForever on GitHub (Jan 23, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/963
System information
act: ghcr.io/catthehacker/ubuntu:act-latestactversion: 0.2.25Expected behaviour
Using a step like
run: echo ::set-output name=FOO::BARin an action should produce a value that is accessible like so:steps.<step id>.outputs.FOOActual behaviour
It works for a workflow/job, but not for an action. I have attached an example that should be easy enough to use to reproduce.
The workflow
example-setoutput.ymland the actionaction-set-output/action.ymlWorkflow and/or repository
example.zip
actoutputLog
@ChristopherHX commented on GitHub (Jan 23, 2022):
Already fixed in master, since
github.com/nektos/act@9868e13772.In act v0.2.25 are even more composite bugs, like composite outputs are not working correctly.
You find a build artifact including the fix here https://github.com/nektos/act/actions/runs/1729619477.
@DanForever commented on GitHub (Jan 23, 2022):
Oh I'm sorry, so there's a fix but there's not been a release since the fix was implemented? OK sorry to bother you guys then :)
@ChristopherHX commented on GitHub (Jan 24, 2022):
I didn't even know that this particular feature were broken in act, till I saw your issue and tested it.
Exactly, if I would be able to create a release I would do it. There are even some votes for a new release https://github.com/nektos/act/pull/793#issuecomment-1002234569 with my changes to composite actions.