mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #1423] [MERGED] feat: allow to spawn and run a local reusable workflow #1940
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#1940
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/1423
Author: @KnisterPeter
Created: 11/3/2022
Status: ✅ Merged
Merged: 12/15/2022
Merged by: @mergify[bot]
Base:
master← Head:local-reusable-workflows📝 Commits (10+)
46c6e59feat: allow to spawn and run a local reusable workflow2427e3cfeat: add workflow_call inputsbe411f3test: improve inputs test8457be5feat: add input defaults3c1e340feat: allow expressions in inputs0ebe02bfeat: use context specific expression evaluator5589cf1refactor: prepare for better re-usability92955f5feat: add secrets for reusable workflowsb14105etest: use secrets during test run74da5b0feat: handle reusable workflow outputs📊 Changes
10 files changed (+472 additions, -139 deletions)
View changed files
📝
pkg/model/workflow.go(+68 -0)📝
pkg/runner/expression.go(+55 -2)📝
pkg/runner/job_executor.go(+20 -0)📝
pkg/runner/job_executor_test.go(+9 -9)➕
pkg/runner/reusable_workflow.go(+45 -0)📝
pkg/runner/run_context.go(+26 -6)📝
pkg/runner/runner.go(+12 -5)📝
pkg/runner/runner_test.go(+124 -117)➕
pkg/runner/testdata/.github/workflows/local-reusable-workflow.yml(+77 -0)➕
pkg/runner/testdata/uses-workflow/local-workflow.yml(+36 -0)📄 Description
This change contains the ability to parse/plan/run a local reusable workflow.
There are still numerous things missing:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.