mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #2170] [MERGED] fix: subpath actions via new artifact cache #2298
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#2298
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/2170
Author: @ChristopherHX
Created: 1/28/2024
Status: ✅ Merged
Merged: 1/28/2024
Merged by: @mergify[bot]
Base:
master← Head:new-artifact-cache-fix-subpath-actions📝 Commits (2)
97a360afix: subpath actions via new artifact cachef7c4debMerge branch 'master' into new-artifact-cache-fix-subpath-actions📊 Changes
2 files changed (+10 additions, -9 deletions)
View changed files
📝
pkg/runner/action.go(+9 -8)📝
pkg/runner/step_action_remote.go(+1 -1)📄 Description
This bug is behind a feature flag, which is good so no impact for regular users of act.
readfile have always read from
action.ymland didn't passed the absolute path inside the action repo. This is fixed now, so readfile applies the subpath as prefixAdditionally the repo content has been copied into the subpath, so I applied a fix to use the trimmed actionContainer path as the code used without the feature toggle
To verify
using vscode debug config
After this fix we get
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.