mirror of
https://github.com/nektos/act.git
synced 2026-04-27 01:45:52 +03:00
[GH-ISSUE #294] variables set using "::set-env" are not available to the steps commands #205
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#205
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 @cuotos on GitHub (Jun 25, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/294
I am using docker/build-push-action and wanted to set an env var in a Step and use it in the value of an input argument to another step.
If BRANCH_NAME is set using "env: " in the actions file it is usable, but if i set it using actions "::set-env" syntax then the var is available IN THE CONTAINER, but not to the commands in the actions file.
I spent a long time trying to work out how to do this in actions, pushed a test file and found that on github this works, but using act it doesn't.
@guzart commented on GitHub (Jul 2, 2020):
I was able to get around this by adding an extra step in between that simply echo's the env var. That somehow makes it available for the next step as an input.
@github-actions[bot] commented on GitHub (Sep 1, 2020):
Issue is stale and will be closed in 7 days unless there is new activity