mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #5888] Fix nested reusable workflows #2609
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#2609
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/5888
Author: @lfallon-manifest
Created: 7/31/2025
Status: 🔄 Open
Base:
master← Head:fix-nested-reusable-workflows📝 Commits (3)
755d10ffix: resolve nested reusable workflow path resolution issuecf1afebtest: add nested reusable workflow test cases14a79d5chore: fix whitespace formatting📊 Changes
6 files changed (+66 additions, -4 deletions)
View changed files
📝
pkg/runner/reusable_workflow.go(+10 -4)📝
pkg/runner/runner_test.go(+1 -0)➕
pkg/runner/testdata/nested-reusable-workflow/.github/workflows/main.yml(+21 -0)➕
pkg/runner/testdata/nested-reusable-workflow/.github/workflows/nested.yml(+16 -0)➕
pkg/runner/testdata/nested-reusable-workflow/local.yml(+9 -0)➕
pkg/runner/testdata/nested-reusable-workflow/push.yml(+9 -0)📄 Description
When a reusable workflow calls another local workflow using relative paths (uses: ./.github/workflows/...), act was incorrectly looking for the nested workflow in the caller's repository instead of the reusable workflow's repository.
This fix ensures that local workflow references are resolved relative to the reusable workflow's location by passing the correct working directory to the reusable workflow runner.
Fixes https://github.com/nektos/act/issues/1875
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.