mirror of
https://github.com/nektos/act.git
synced 2026-04-26 17:35:49 +03:00
[GH-ISSUE #818] Issue: env: section from jobs: part of workflow not handled the same as when executed on Github #504
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#504
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 @henrikrxn on GitHub (Sep 18, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/818
Originally assigned to: @catthehacker on GitHub.
First of all thank you for the effort you put into act 😃
It is so great being able to iterate on workflows locally and have a quick feedback loop.
System information
act: catthehacker/ubuntu:act-latestactversion: act version 0.2.24Expected behaviour
All variables from
env:section of jobs should be handled the same way locally and the the workflow runs on Github.The workflow prints part of the env. That was before I realized that
-vdoes the same.run: env | grep MY_OWN | sortEach declared env variable should be present and have the value from the workflow file assigned to it.
Given this snippet from example workflow in repository
I would expect this (snipped from action log on Github)
Actual behaviour
When running locally using Act all variables are declared, but not all have values
Workflow and/or repository
Example repo:
https://github.com/henrikrxn/act-simple-repro-for-issues
Workflow build-and-test.yml
Steps to reproduce
actoutputLog
@henrikrxn commented on GitHub (Sep 18, 2021):
The workaround is simple: Just add quotes around the value
@github-actions[bot] commented on GitHub (Oct 29, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@henrikrxn commented on GitHub (Oct 29, 2021):
Not stale
@github-actions[bot] commented on GitHub (Nov 29, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@henrikrxn commented on GitHub (Nov 29, 2021):
@catthehacker
Checked against release 0.2.25 and it looks like the issue has been fixed by some of the changes in the release.