[PR #2155] [MERGED] feat: Test writing remote Actions locally #2290

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

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/2155
Author: @ChristopherHX
Created: 1/18/2024
Status: Merged
Merged: 2/23/2024
Merged by: @mergify[bot]

Base: masterHead: local-repository-action-cache


📝 Commits (4)

  • ba69f85 feat: Test writing remote Actions locally
  • fee6a28 Merge branch 'master' into local-repository-action-cache
  • 3f4aff6 Merge branch 'master' into local-repository-action-cache
  • 5c1546f Merge branch 'master' into local-repository-action-cache

📊 Changes

6 files changed (+144 additions, -1 deletions)

View changed files

📝 cmd/input.go (+1 -0)
📝 cmd/root.go (+14 -1)
pkg/runner/local_repository_cache.go (+91 -0)
📝 pkg/runner/runner_test.go (+26 -0)
pkg/runner/testdata/local-remote-action-overrides/config.yml (+3 -0)
pkg/runner/testdata/local-remote-action-overrides/push.yml (+9 -0)

📄 Description

How to test

Usage: ./act --local-repository "https://github.com/test/test@v0=$PWD" -W test.yml -P self-hosted=-self-hosted -v

Now also possible ./act --local-repository "test/test@v0=$PWD" -W test.yml -P self-hosted=-self-hosted -v

on: push
jobs:
  _:
    runs-on: self-hosted
    steps:
    - uses: test/test@v0

action.yml in cwd

runs:
  using: composite
  steps:
  - run: echo Test

Why?

Local actions cannot have pre steps and use a different syntax in the uses key


🔄 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/2155 **Author:** [@ChristopherHX](https://github.com/ChristopherHX) **Created:** 1/18/2024 **Status:** ✅ Merged **Merged:** 2/23/2024 **Merged by:** [@mergify[bot]](https://github.com/apps/mergify) **Base:** `master` ← **Head:** `local-repository-action-cache` --- ### 📝 Commits (4) - [`ba69f85`](https://github.com/nektos/act/commit/ba69f85723d65c979ceb5784c1d24f49e66c7d31) feat: Test writing remote Actions locally - [`fee6a28`](https://github.com/nektos/act/commit/fee6a28f54d8e91285cc3c67fbd8f65287af0d17) Merge branch 'master' into local-repository-action-cache - [`3f4aff6`](https://github.com/nektos/act/commit/3f4aff6bfb5f61b1475a2dde18aa3ea101cf5940) Merge branch 'master' into local-repository-action-cache - [`5c1546f`](https://github.com/nektos/act/commit/5c1546f71991765e022112788512c3849e24e5ba) Merge branch 'master' into local-repository-action-cache ### 📊 Changes **6 files changed** (+144 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `cmd/input.go` (+1 -0) 📝 `cmd/root.go` (+14 -1) ➕ `pkg/runner/local_repository_cache.go` (+91 -0) 📝 `pkg/runner/runner_test.go` (+26 -0) ➕ `pkg/runner/testdata/local-remote-action-overrides/config.yml` (+3 -0) ➕ `pkg/runner/testdata/local-remote-action-overrides/push.yml` (+9 -0) </details> ### 📄 Description # How to test Usage: `./act --local-repository "https://github.com/test/test@v0=$PWD" -W test.yml -P self-hosted=-self-hosted -v` Now also possible `./act --local-repository "test/test@v0=$PWD" -W test.yml -P self-hosted=-self-hosted -v` ```yaml on: push jobs: _: runs-on: self-hosted steps: - uses: test/test@v0 ``` action.yml in cwd ```yaml runs: using: composite steps: - run: echo Test ``` # Why? Local actions cannot have pre steps and use a different syntax in the uses key --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:54:48 +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#2290
No description provided.