mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #1472] [MERGED] refactor: fix add-path / GITHUB_PATH commands #1962
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#1962
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?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/1472
Author: @ChristopherHX
Created: 11/27/2022
Status: ✅ Merged
Merged: 12/9/2022
Merged by: @mergify[bot]
Base:
master← Head:fix-path-handling📝 Commits (10+)
f330529fix: add-path / GITHUB_PATH commandsa9555dfDisable old codeeb83aa7fix: missing mockcb27189Update tests0441b93fix tests3f57c95UpdateExtraPath skip on dryrun41cb290patch testdbfb4a3Merge branch 'master' into fix-path-handling4857f26Merge branch 'master' into fix-path-handlinga4b570eMerge branch 'master' into fix-path-handling📊 Changes
12 files changed (+95 additions, -46 deletions)
View changed files
📝
pkg/runner/action.go(+6 -0)📝
pkg/runner/command.go(+7 -1)📝
pkg/runner/command_test.go(+2 -2)📝
pkg/runner/container_mock_test.go(+11 -0)📝
pkg/runner/run_context.go(+38 -9)📝
pkg/runner/step.go(+9 -12)📝
pkg/runner/step_action_local_test.go(+6 -5)📝
pkg/runner/step_action_remote_test.go(+6 -2)📝
pkg/runner/step_docker_test.go(+4 -4)📝
pkg/runner/step_run.go(+1 -0)📝
pkg/runner/step_run_test.go(+4 -4)📝
pkg/runner/step_test.go(+1 -7)📄 Description
The existing code applies prepend path for all actions, while it shouldn't do it for docker actions.
Additionally GITHUB_PATH shouldn't update the env directly, instead add to extrapath
Seems like the old ::add-path:: never worked correctly, because the first add-path always wins e.g.
Duplicated path are now eliminated.
Resolves #1384
Still to complex for get it ready.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.