[PR #2172] [MERGED] fix: improve new-action-cache fetch failure error #2302

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

📋 Pull Request Information

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

Base: masterHead: fix-improve-new-action-cache-fetch-failure-error


📝 Commits (2)

  • 1a4cc13 fix: improve new-action-cache fetch failure error
  • 07691fe Merge branch 'master' into fix-improve-new-action-cache-fetch-failure-error

📊 Changes

2 files changed (+8 additions, -2 deletions)

View changed files

📝 pkg/runner/action_cache.go (+4 -0)
📝 pkg/runner/step_action_remote.go (+4 -2)

📄 Description

  • include repoURL and repoRef in error
  • map NoErrAlreadyUptodate to couldn't find remote ref for branchOrtag
    fetch request

test workflow

on: push
jobs:
  _:
    runs-on: ubuntu-latest
    steps:
    - uses: ChristopherHX/ChristopherHX/test@main-2

main-2 doesn't exist, but uses the wildcard query so it returns already uptodate as error due to to ref needing to be fetched

The random tmp branch would never exist so there is no problem mapping it


🔄 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/2172 **Author:** [@ChristopherHX](https://github.com/ChristopherHX) **Created:** 1/28/2024 **Status:** ✅ Merged **Merged:** 1/28/2024 **Merged by:** [@mergify[bot]](https://github.com/apps/mergify) **Base:** `master` ← **Head:** `fix-improve-new-action-cache-fetch-failure-error` --- ### 📝 Commits (2) - [`1a4cc13`](https://github.com/nektos/act/commit/1a4cc136eb874d2e96394248abca11f3c8e358c4) fix: improve new-action-cache fetch failure error - [`07691fe`](https://github.com/nektos/act/commit/07691fe2db9f3c813366d55d71c16b6e075e68d9) Merge branch 'master' into fix-improve-new-action-cache-fetch-failure-error ### 📊 Changes **2 files changed** (+8 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `pkg/runner/action_cache.go` (+4 -0) 📝 `pkg/runner/step_action_remote.go` (+4 -2) </details> ### 📄 Description - include repoURL and repoRef in error - map NoErrAlreadyUptodate to `couldn't find remote ref` for branchOrtag fetch request test workflow ``` on: push jobs: _: runs-on: ubuntu-latest steps: - uses: ChristopherHX/ChristopherHX/test@main-2 ``` `main-2` doesn't exist, but uses the wildcard query so it returns already uptodate as error due to to ref needing to be fetched The random tmp branch would never exist so there is no problem mapping it --- <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:51 +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#2302
No description provided.