mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #2184] GITHUB_OUTPUT scope for custom actions seems not same as GH actions #1031
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#1031
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 @shqear93 on GitHub (Jan 31, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2184
Bug report info
Command used with act
Describe issue
The workflows is a custom action located at (./.github/actions/connection-tester), I use it in my main action as follows:
I have defined output
execution_outputas exampleIn the step "Copy outputs to variables" I define the
id=get-execution-outputwhich fills this variable with the needed datain GitHub workflows, if the id was not defined -> the main workflow won't be able to read it:
in act-cli, even if id was not defined, it fills the content in the variable
execution_outputI guess the reason is related to the scopes, it looks like GH workflow defines a separate scope for GITHUB_OUTPUT for each step, but in act-cli, it defines GITHUB_OUTPUT on the custom action level
Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
No response
@jsoref commented on GitHub (Apr 4, 2024):
Fwiw, here's a simple workflow run: https://github.com/check-spelling-sandbox/nektos-issue-action-outputs-1/actions/runs/8560809761/job/23460628099
Run echo "$outputs"GitHub
Act
@github-actions[bot] commented on GitHub (Oct 2, 2024):
Issue is stale and will be closed in 14 days unless there is new activity