[PR #2128] [MERGED] feat: support offline mode #2279

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

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/2128
Author: @TKaxv-7S
Created: 12/16/2023
Status: Merged
Merged: 1/20/2024
Merged by: @mergify[bot]

Base: masterHead: support_offline_mode


📝 Commits (7)

  • c08a3d2 Add: Actions Offline Mode
  • 638219f Merge branch 'master' into support_offline_mode
  • 69e9530 Merge branch 'master' into support_offline_mode
  • ef9c5db Merge branch 'master' into support_offline_mode
  • 857d9ce Merge branch 'master' into support_offline_mode
  • fe28097 Add: Actions Offline Mode
  • da0191e Merge branch 'master' into support_offline_mode

📊 Changes

6 files changed (+31 additions, -19 deletions)

View changed files

📝 cmd/input.go (+1 -0)
📝 cmd/root.go (+3 -1)
📝 pkg/common/git/git.go (+16 -10)
📝 pkg/runner/reusable_workflow.go (+5 -4)
📝 pkg/runner/runner.go (+1 -0)
📝 pkg/runner/step_action_remote.go (+5 -4)

📄 Description

In some regions, connecting to github.com may not be as smooth.

So every time we using uses: method, it is not a good way to fetch and pull the current action content, and I think the action tag will also be rarely updated.

We can add a configurable option in OfflineMode to control it, setting the default value to false, so this will not affect other users.

PS: This feature is mainly intended for use by Gitea act_runner. If possible, I will also create a pull request over there.


🔄 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/2128 **Author:** [@TKaxv-7S](https://github.com/TKaxv-7S) **Created:** 12/16/2023 **Status:** ✅ Merged **Merged:** 1/20/2024 **Merged by:** [@mergify[bot]](https://github.com/apps/mergify) **Base:** `master` ← **Head:** `support_offline_mode` --- ### 📝 Commits (7) - [`c08a3d2`](https://github.com/nektos/act/commit/c08a3d2bd1dde5922d5e8f866725e2301e8a0263) Add: Actions Offline Mode - [`638219f`](https://github.com/nektos/act/commit/638219f9238ba284324ee719e2fa87fa5b1d2c49) Merge branch 'master' into support_offline_mode - [`69e9530`](https://github.com/nektos/act/commit/69e953034c19cb110c0cfeeb0064d6c0805ea1a1) Merge branch 'master' into support_offline_mode - [`ef9c5db`](https://github.com/nektos/act/commit/ef9c5db2c659258638c73903fb079933686cd0f4) Merge branch 'master' into support_offline_mode - [`857d9ce`](https://github.com/nektos/act/commit/857d9ce66a6edf03d44bac21cfa3d9a26a936d2c) Merge branch 'master' into support_offline_mode - [`fe28097`](https://github.com/nektos/act/commit/fe280974cf087bf1da74e1a9c10c5c60ba9f8a10) Add: Actions Offline Mode - [`da0191e`](https://github.com/nektos/act/commit/da0191e6a0be30dd4da8006858c4cf7845e90197) Merge branch 'master' into support_offline_mode ### 📊 Changes **6 files changed** (+31 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `cmd/input.go` (+1 -0) 📝 `cmd/root.go` (+3 -1) 📝 `pkg/common/git/git.go` (+16 -10) 📝 `pkg/runner/reusable_workflow.go` (+5 -4) 📝 `pkg/runner/runner.go` (+1 -0) 📝 `pkg/runner/step_action_remote.go` (+5 -4) </details> ### 📄 Description In some regions, connecting to github.com may not be as smooth. So every time we using `uses:` method, it is not a good way to `fetch` and `pull` the current action content, and I think the action tag will also be rarely updated. We can add a configurable option in `OfflineMode` to control it, setting the default value to `false`, so this will not affect other users. PS: This feature is mainly intended for use by [Gitea act_runner](https://gitea.com/gitea/act_runner). If possible, I will also create a pull request over there. --- <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:46 +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#2279
No description provided.