mirror of
https://github.com/nektos/act.git
synced 2026-04-25 17:05:50 +03:00
[PR #5980] fix: chained reusable workflows #2644
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#2644
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/5980
Author: @pablots99
Created: 12/17/2025
Status: 🔄 Open
Base:
master← Head:fix/chained-reusable-workflows📝 Commits (3)
b39ec15Fix chained reusable workflowsae1d83aMerge branch 'master' into fix/chained-reusable-workflows173e6ccMerge branch 'master' into fix/chained-reusable-workflows📊 Changes
3 files changed (+139 additions, -11 deletions)
View changed files
📝
pkg/runner/reusable_workflow.go(+39 -10)➕
pkg/runner/reusable_workflow_test.go(+98 -0)📝
pkg/runner/runner.go(+2 -1)📄 Description
Problem
When a local workflow calls a reusable workflow from an external repository, and that external workflow calls another reusable workflow from the same external repo using a local reference (
./.github/workflows/...),actfails with a "file not found" error.Error:
stat /path/to/local/repo/.github/workflows/setup.yml: no such file or directoryThe nested workflow reference resolves relative to the local repository instead of the external repository.
Solution
Track the parent workflow's origin through the runner chain. When executing a reusable workflow from an external repo, store a reference to that workflow in the
callerstruct. When a nested workflow uses a local reference, check if we're inside a remote workflow and resolve the path accordingly.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.