mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #407] Environment injected in script instead of in shell #288
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#288
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 @Bigpet on GitHub (Nov 3, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/407
I've run into an incompatibility with the GitHub Actions runner. When setting a custom shell command act seems to assume a normal shell whereas the GitHub Actions runner can deal with things like
pythonjust fine.This creates a shell script
full_output, but doesn't just dump the "run:" commands in it, but also inserts some shell environment variable commands into the file (namely "PATH=":${PATH}"")It would be great if the environment stuff would be setup into the environment that "shell" is executed in, instead of trying to set it up from inside.
expected output
actual output
version
act version 0.2.16
MacOs
@winksaville commented on GitHub (Nov 3, 2020):
This should be fixed by change #406. If you checkout the master branch and execute
make buildand then executedist/local/actit should work. It worked for me:@Bigpet commented on GitHub (Nov 4, 2020):
Yep, that fixed my issue.
Thanks for the quick fix.