mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #2637] Paths to binaries put in GITHUB_PATH are not correctly set #1197
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#1197
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 @gotha on GitHub (Jan 29, 2025).
Original GitHub issue: https://github.com/nektos/act/issues/2637
Bug report info
Command used with act
Describe issue
When a step in the workflow installs a binary and puts it into
$GITHUB_PATHit is not found by other scripts in the same step or job.Expected behavior:
When
test1.shis executed and the it puts something in$GITHUB_PATH, the binary should be visible toThe described behaviour works with Github Actions, but fails with
act(you can see the workflow in the attachment).test1.sh
test2.sh
Link to GitHub repository
Here is an example of pipeline that succeeds with running the scripts:
https://github.com/gotha/kind-action/actions/runs/13030156289/job/36347477256
The behavior was originally observed when using helm/kind-action@v1
Workflow content
Relevant log output
Additional information
No response
@ChristopherHX commented on GitHub (Jan 30, 2025):
I disagree, btw the vm image used on GitHub contains kubectl https://github.com/actions/runner-images/blob/ubuntu24/20250126.1/images/ubuntu/Ubuntu2404-Readme.md#tools
So you don't observe that your workflow might be broken?
You could download it if you like, its tag full-24.04 of the default images listed in the act user guide runner page
I agree about this should work, is this broken?
@gotha commented on GitHub (Jan 31, 2025):
it was unfortunate that I picked up a random binary to test with that accidentally exists in GHA, but not the local image.
I re-tested with
cowsayand I can confirm that it works exactly like @ChristopherHX described.It seems like the issue was with the pipeline itself. It can be resolved by either changing the pipeline or using the full image.
Thanks for the help @ChristopherHX
In case somebody tries to reproduce it:
test1.sh
test2.sh