fix: 'failed to read action' errors when using relative workdir_parent #1175
No reviewers
Labels
No labels
FreeBSD
Kind/Breaking
Kind/Bug
Kind/Chore
Kind/DependencyUpdate
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
Windows
linux-powerpc64le
linux-riscv64
linux-s390x
run-end-to-end-tests
run-forgejo-tests
run-multi-platform-tests
No milestone
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo/runner!1175
Loading…
Reference in a new issue
No description provided.
Delete branch "mfenniak/forgejo-runner:fix-failed-to-read-action"
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?
When
workdir_parentis a relative path, actions were failing with error:The cause of this is that worktree creation using
git -C relative/repodir worktree add relative/worktreewould actually create therelative/worktreeinside the repo. It seems thatgit -Cto operate on a repo changes the working directory into that repo and evaluates relative paths from there.Fixed by converting
workdir_parentinto an absolute path after the config file is read, and adding an error in the git operations if a relative path somehow makes its way through.0764ee14089744c5532a9744c5532a6d791d30ffcascading-pr updated at actions/setup-forgejo#773
Regression caused by #1162.
envfilefor looking upgit#1177