[GH-ISSUE #1033] Issue: Error: file does not exist with reusable workflows #603

Closed
opened 2026-03-01 21:44:52 +03:00 by kerem · 5 comments
Owner

Originally created by @vladimirzatsepin on GitHub (Mar 11, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1033

Setup

I have the following .github/workflows/main.yaml:

name: Call workflow

on:
  workflow_dispatch:

jobs:
  call_workflow:
    runs-on: ubuntu-latest
    steps:
      - name: call_workflow
        uses: ./.github/workflows/called.yml

And .github/workflows/called.yml:

on:
  workflow_call:

jobs:
  call:
    runs-on: ubuntu-latest
    steps:
      - run: echo "Hello!"

Run command:

act -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-20.04 workflow_dispatch -j call_workflow

Expected behaviour

"Hello!" printed.

Actual behaviour

[Call workflow/call_workflow] 🚀 Start image=act
[Call workflow/call_workflow] 🐳 docker run image=act platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Call workflow/call_workflow] 🐳 docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root
[Call workflow/call_workflow] Run call_workflow
[Call workflow/call_workflow] Failure - call_workflow
Error: file does not exist

Originally created by @vladimirzatsepin on GitHub (Mar 11, 2022). Original GitHub issue: https://github.com/nektos/act/issues/1033 ## Setup I have the following `.github/workflows/main.yaml`: ```yaml name: Call workflow on: workflow_dispatch: jobs: call_workflow: runs-on: ubuntu-latest steps: - name: call_workflow uses: ./.github/workflows/called.yml ``` And `.github/workflows/called.yml`: ```yaml on: workflow_call: jobs: call: runs-on: ubuntu-latest steps: - run: echo "Hello!" ``` Run command: ``` act -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-20.04 workflow_dispatch -j call_workflow ``` ## Expected behaviour "Hello!" printed. ## Actual behaviour [Call workflow/call_workflow] 🚀 Start image=act [Call workflow/call_workflow] 🐳 docker run image=act platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [Call workflow/call_workflow] 🐳 docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root [Call workflow/call_workflow] ⭐ Run call_workflow [Call workflow/call_workflow] ❌ Failure - call_workflow **Error: file does not exist**
kerem 2026-03-01 21:44:52 +03:00
Author
Owner

@ChristopherHX commented on GitHub (Mar 11, 2022):

My Expected behaviour

Error: file does not exist
I agree this error should be improved

Reason

None of the following files are found:

  • ./.github/workflows/called.yml/action.yml
  • ./.github/workflows/called.yml/action.yaml
  • ./.github/workflows/called.yml/Dockerfile

Correctly calling workflows

Act doesn't support reusable workflows yet ( https://github.com/nektos/act/issues/826 )

.github/workflows/main.yaml

name: Call workflow

on:
  workflow_dispatch:

jobs:
  call_workflow:
    uses: ./.github/workflows/called.yml
<!-- gh-comment-id:1065017492 --> @ChristopherHX commented on GitHub (Mar 11, 2022): ### My Expected behaviour **Error: file does not exist** I agree this error should be improved ### Reason None of the following files are found: - `./.github/workflows/called.yml/action.yml` - `./.github/workflows/called.yml/action.yaml` - `./.github/workflows/called.yml/Dockerfile` ## Correctly calling workflows **Act doesn't support reusable workflows yet ( https://github.com/nektos/act/issues/826 )** `.github/workflows/main.yaml` ```yaml name: Call workflow on: workflow_dispatch: jobs: call_workflow: uses: ./.github/workflows/called.yml ```
Author
Owner

@vladimirzatsepin commented on GitHub (Mar 13, 2022):

Do you have any timelines or roadmap for that?

<!-- gh-comment-id:1066113358 --> @vladimirzatsepin commented on GitHub (Mar 13, 2022): Do you have any timelines or roadmap for that?
Author
Owner

@fanninpm commented on GitHub (Mar 22, 2022):

Do you have any timelines or roadmap for that?

@catthehacker

<!-- gh-comment-id:1074566792 --> @fanninpm commented on GitHub (Mar 22, 2022): > Do you have any timelines or roadmap for that? @catthehacker
Author
Owner

@catthehacker commented on GitHub (Mar 22, 2022):

Do you have any timelines or roadmap for that?

no

<!-- gh-comment-id:1074600617 --> @catthehacker commented on GitHub (Mar 22, 2022): > Do you have any timelines or roadmap for that? no
Author
Owner

@catthehacker commented on GitHub (Mar 22, 2022):

Closing as duplicate of #826

<!-- gh-comment-id:1074603027 --> @catthehacker commented on GitHub (Mar 22, 2022): Closing as duplicate of #826
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#603
No description provided.