[PR #1423] [MERGED] feat: allow to spawn and run a local reusable workflow #1940

Closed
opened 2026-03-01 21:53:20 +03:00 by kerem · 0 comments
Owner

📋 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: masterHead: local-reusable-workflows


📝 Commits (10+)

  • 46c6e59 feat: allow to spawn and run a local reusable workflow
  • 2427e3c feat: add workflow_call inputs
  • be411f3 test: improve inputs test
  • 8457be5 feat: add input defaults
  • 3c1e340 feat: allow expressions in inputs
  • 0ebe02b feat: use context specific expression evaluator
  • 5589cf1 refactor: prepare for better re-usability
  • 92955f5 feat: add secrets for reusable workflows
  • b14105e test: use secrets during test run
  • 74da5b0 feat: 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:

  • inputs
  • secrets
  • outputs

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/1423 **Author:** [@KnisterPeter](https://github.com/KnisterPeter) **Created:** 11/3/2022 **Status:** ✅ Merged **Merged:** 12/15/2022 **Merged by:** [@mergify[bot]](https://github.com/apps/mergify) **Base:** `master` ← **Head:** `local-reusable-workflows` --- ### 📝 Commits (10+) - [`46c6e59`](https://github.com/nektos/act/commit/46c6e59f47d1aaa8a61ba14631b7813b4f421cf6) feat: allow to spawn and run a local reusable workflow - [`2427e3c`](https://github.com/nektos/act/commit/2427e3ca1e153e08c4329d722f7b7bbbecb311b5) feat: add workflow_call inputs - [`be411f3`](https://github.com/nektos/act/commit/be411f3a6f3763eef2eb524f2da33531f7cc2706) test: improve inputs test - [`8457be5`](https://github.com/nektos/act/commit/8457be573fb3131dc4e79167b245b6a430edff8a) feat: add input defaults - [`3c1e340`](https://github.com/nektos/act/commit/3c1e3402945dfd7fc399eab9c1bb1b4608895e31) feat: allow expressions in inputs - [`0ebe02b`](https://github.com/nektos/act/commit/0ebe02b4b1e23f6d12d96561723a5138e7c2c4aa) feat: use context specific expression evaluator - [`5589cf1`](https://github.com/nektos/act/commit/5589cf1ce7d93808d2db7a3b9aa9f13268db8498) refactor: prepare for better re-usability - [`92955f5`](https://github.com/nektos/act/commit/92955f5b5fe24721ba4876c302b048c3fba229cc) feat: add secrets for reusable workflows - [`b14105e`](https://github.com/nektos/act/commit/b14105e4bf475d8cc6639405cfae4dd45573f3ba) test: use secrets during test run - [`74da5b0`](https://github.com/nektos/act/commit/74da5b085c0c4d08c5e5bf53501e555cb585b26c) feat: handle reusable workflow outputs ### 📊 Changes **10 files changed** (+472 additions, -139 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 Description This change contains the ability to parse/plan/run a local reusable workflow. There are still numerous things missing: - [x] inputs - [x] secrets - [x] outputs --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:53:20 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1940
No description provided.