[PR #2171] [MERGED] fix: improve action not found error #2301

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/2171
Author: @ChristopherHX
Created: 1/28/2024
Status: Merged
Merged: 1/28/2024
Merged by: @mergify[bot]

Base: masterHead: fix-improve-action-not-found-error


📝 Commits (1)

  • 9fc6578 fix: improve action not found error

📊 Changes

1 file changed (+18 additions, -6 deletions)

View changed files

📝 pkg/runner/action.go (+18 -6)

📄 Description

This change now adds information about what has not been found

on: push
jobs:
  _:
    runs-on: ubuntu-latest
    steps:
    - uses: ChristopherHX/ChristopherHX/test@main
    # - uses: ./test # uncomment for local action error

remote action error in host mode after change (new action cache)

[w.yml/_] Cleaning up container for job _
[w.yml/_] 🏁  Job succeeded
Error: failed to read 'action.yml' from action 'ChristopherHX/ChristopherHX/test@main' with path 'test' of step file does not exist
failed to read 'action.yaml' from action 'ChristopherHX/ChristopherHX/test@main' with path 'test' of step file does not exist
failed to read 'Dockerfile' from action 'ChristopherHX/ChristopherHX/test@main' with path 'test' of step file does not exist

local action error in host mode after change

[w.yml/_] ⭐ Run Main ./test
[w.yml/_]   ❌  Failure - Main ./test
[w.yml/_] failed to read 'action.yml' from action './test' with path '' of step lstat /home/christopher/.cache/act/932a1fabcd53bbac/hostexecutor/test/action.yml: no such file or directory
failed to read 'action.yaml' from action './test' with path '' of step lstat /home/christopher/.cache/act/932a1fabcd53bbac/hostexecutor/test/action.yaml: no such file or directory
failed to read 'Dockerfile' from action './test' with path '' of step lstat /home/christopher/.cache/act/932a1fabcd53bbac/hostexecutor/test/Dockerfile: no such file or directory
[w.yml/_] 🏁  Job failed
Error: Job '_' failed

vscode launch config

        {
            "name": "Launch Package",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "${workspaceFolder}",
            "args": [
                "-W",
                "w.yml",
                "-P",
                "ubuntu-latest=-self-hosted",
                "--use-new-action-cache"
            ]
        }

🔄 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/2171 **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-action-not-found-error` --- ### 📝 Commits (1) - [`9fc6578`](https://github.com/nektos/act/commit/9fc65788932ee69c08ba73a6ec2f0773fa8a6b03) fix: improve action not found error ### 📊 Changes **1 file changed** (+18 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `pkg/runner/action.go` (+18 -6) </details> ### 📄 Description This change now adds information about what has not been found ```yaml on: push jobs: _: runs-on: ubuntu-latest steps: - uses: ChristopherHX/ChristopherHX/test@main # - uses: ./test # uncomment for local action error ``` remote action error in host mode after change (new action cache) ``` [w.yml/_] Cleaning up container for job _ [w.yml/_] 🏁 Job succeeded Error: failed to read 'action.yml' from action 'ChristopherHX/ChristopherHX/test@main' with path 'test' of step file does not exist failed to read 'action.yaml' from action 'ChristopherHX/ChristopherHX/test@main' with path 'test' of step file does not exist failed to read 'Dockerfile' from action 'ChristopherHX/ChristopherHX/test@main' with path 'test' of step file does not exist ``` local action error in host mode after change ``` [w.yml/_] ⭐ Run Main ./test [w.yml/_] ❌ Failure - Main ./test [w.yml/_] failed to read 'action.yml' from action './test' with path '' of step lstat /home/christopher/.cache/act/932a1fabcd53bbac/hostexecutor/test/action.yml: no such file or directory failed to read 'action.yaml' from action './test' with path '' of step lstat /home/christopher/.cache/act/932a1fabcd53bbac/hostexecutor/test/action.yaml: no such file or directory failed to read 'Dockerfile' from action './test' with path '' of step lstat /home/christopher/.cache/act/932a1fabcd53bbac/hostexecutor/test/Dockerfile: no such file or directory [w.yml/_] 🏁 Job failed Error: Job '_' failed ``` vscode launch config ```json { "name": "Launch Package", "type": "go", "request": "launch", "mode": "auto", "program": "${workspaceFolder}", "args": [ "-W", "w.yml", "-P", "ubuntu-latest=-self-hosted", "--use-new-action-cache" ] } ``` --- <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#2301
No description provided.