mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #712] [MERGED] Refactor local, composite actions and run steps #1573
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#1573
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/712
Author: @ChristopherHX
Created: 5/29/2021
Status: ✅ Merged
Merged: 6/10/2021
Merged by: @mergify[bot]
Base:
master← Head:refactor/actions📝 Commits (3)
6d8b2e0Refactor local, composite actions and run stepsc47dd0dMerge branch 'master' into refactor/actionsee466b3Merge branch 'master' into refactor/actions📊 Changes
4 files changed (+26 additions, -24 deletions)
View changed files
📝
pkg/runner/step_context.go(+23 -24)📝
pkg/runner/testdata/local-action-docker-url/push.yml(+1 -0)📝
pkg/runner/testdata/local-action-dockerfile/push.yml(+1 -0)📝
pkg/runner/testdata/local-action-js/push.yml(+1 -0)📄 Description
This PR makes my previous PR redundant and conflicts with it.
Skip docker cp for local actions and use their correct path
Allow cloning local actions where you wish, (needs a lot of more changes)Defines GITHUB_ACTION_PATH also for nodejs actions
Evaluate Env of composite action
Evaluate Run of composite action correctly
Evaluate Shell of run steps
Evaluate WorkingDirectory of run steps
Resolves #441
Resolves #640
Resolves #664
Resolves #708
Replaces #709
Known issuescomposite step's properties are evaluated twice, this make escaping, this is a bug / feature of act${{'${{Test}}'}}impossible (this doesn't work in act yet)path.Joinalways use/to concat path's and is better than +Act should never copy local actions, because they can come from anywhere via checkout, git clone etc.
Merging this might resolve this known issue:(seems like we would need to copy files from the container to host)https://github.com/nektos/act#module_not_found
I have no experience in golang
Update:
fixes #733
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.