[PR #2108] Allow local actions outside the workspace #2270

Open
opened 2026-03-01 21:54:43 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/2108
Author: @jenseng
Created: 11/29/2023
Status: 🔄 Open

Base: masterHead: allow-local-actions-outside-workspace


📝 Commits (2)

  • c83a17e Allow local actions outside the workspace
  • 40af543 appease the linter

📊 Changes

4 files changed (+32 additions, -19 deletions)

View changed files

📝 pkg/runner/action.go (+9 -17)
📝 pkg/runner/action_test.go (+5 -2)
📝 pkg/runner/runner_test.go (+1 -0)
pkg/runner/testdata/local-action-outside-workspace/push.yml (+17 -0)

📄 Description

Fixes #2107

Also simplify actionName logic and ensure it returns sensible values for actions outside the workspace (it's only used for logging and docker image name)


🔄 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/2108 **Author:** [@jenseng](https://github.com/jenseng) **Created:** 11/29/2023 **Status:** 🔄 Open **Base:** `master` ← **Head:** `allow-local-actions-outside-workspace` --- ### 📝 Commits (2) - [`c83a17e`](https://github.com/nektos/act/commit/c83a17ed592416dbf449deed4139308c14e383cd) Allow local actions outside the workspace - [`40af543`](https://github.com/nektos/act/commit/40af543423981abd425c7f59348c60f9a0abbf95) appease the linter ### 📊 Changes **4 files changed** (+32 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `pkg/runner/action.go` (+9 -17) 📝 `pkg/runner/action_test.go` (+5 -2) 📝 `pkg/runner/runner_test.go` (+1 -0) ➕ `pkg/runner/testdata/local-action-outside-workspace/push.yml` (+17 -0) </details> ### 📄 Description Fixes #2107 Also simplify `actionName` logic and ensure it returns sensible values for actions outside the workspace (it's only used for logging and docker image name) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#2270
No description provided.