[GH-ISSUE #1875] Calling reusable workflow which uses a subworkflow at a relative path in the same repository fails with file not found. #909

Open
opened 2026-03-01 21:47:20 +03:00 by kerem · 7 comments
Owner

Originally created by @wildsheepz on GitHub (Jun 21, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1875

Bug report info

act version:            0.2.46
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 8
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
	/var/run/docker.sock
Config files:           
Build info:
	Go version:            go1.18.10
	Module path:           github.com/nektos/act
	Main version:          (devel)
	Main path:             github.com/nektos/act
	Main checksum:         
	Build settings:
		-compiler:            gc
		-ldflags:             -s -w -X main.version=0.2.46 -X main.commit=b0d0cec71f2240fc629dcaa1889ed8c4ad52beb9 -X main.date=2023-06-01T02:39:24Z -X main.builtBy=goreleaser
		CGO_ENABLED:          0
		GOARCH:               amd64
		GOOS:                 linux
		GOAMD64:              v1
		vcs:                  git
		vcs.revision:         b0d0cec71f2240fc629dcaa1889ed8c4ad52beb9
		vcs.time:             2023-06-01T02:39:05Z
		vcs.modified:         false
Docker Engine:
	Engine version:        24.0.2
	Engine runtime:        runc
	Cgroup version:        2
	Cgroup driver:         systemd
	Storage driver:        overlay2
	Registry URI:          https://index.docker.io/v1/
	OS:                    Ubuntu 20.04.6 LTS
	OS type:               linux
	OS version:            20.04
	OS arch:               x86_64
	OS kernel:             5.15.89+
	OS CPU:                8
	OS memory:             31138 MB
	Security options:
		name=apparmor
		name=seccomp,profile=builtin
		name=cgroupns

Command used with act

act -W .github/workflows/call-workflow.yaml --rm -P self-hosted=localhost:9283/runner:latest -P ubuntu:22.04=localhost:9283/runner:latest -P ubuntu:20.04=localhost:9283/runner:latest -P ubuntu:18.04=localhost:9283/runner:latest -P ubuntu-latest=localhost:9283/runner:latest --artifact-server-path ./uploads

Describe issue

What I'm trying to do in the reusable workflow is call-workflow-2-in-local-repo. It seems that nektos wrongly tries to find the reusable workflow's subworkflow yaml at the wrong path, resulting in a Error: stat /home/user/src/TestCallingReusableWorkflow/.github/workflows/do-more-stuff.yaml: no such file or directory

I created 2 repositories with simple workflows to replicate this issue, refer to or checkout the following 2 repositories to reproduce the issue:

https://github.com/wildsheepz/TestCallingReusableWorkflow

Workflow content

name: Call Reusable Workflow
on:
  workflow_dispatch:

jobs:
  call-reusable-workflow:
    uses: wildsheepz/TestReusableWorkflow/.github/workflows/main.yaml@main
    secrets: inherit

# wildsheepz/TestReusableWorkflow/.github/workflows/main.yaml
on:
  workflow_call:
jobs:
  pre-task-prep:
    runs-on: self-hosted
    steps:
      - name: Print Repo and Branch name to be scanned.
        run: |
          echo prepare to do more stuff
  do-more-stuff:
    needs: pre-task-prep
    uses: ./.github/workflows/do-more-stuff.yaml
    secrets: inherit

# wildsheepz/TestReusableWorkflow/.github/workflows/do-more-stuff.yaml
on:
  workflow_call:
jobs:
  start-doing-stuff:
    runs-on: self-hosted
    steps:
      - name: step one of doing more stuff
        id: example
        run: |
          echo "I am doing more stuff now"

Relevant log output

act -v -W .github/workflows/call-workflow.yaml --rm -P self-hosted=localhost:9283/runner:latest -P ubuntu:22.04=localhost:9283/runner:latest -P ubuntu:20.04=localhost:9283/runner:latest -P ubuntu:18.04=localhost:9283/runner:latest -P ubuntu-latest=localhost:9283/runner:latest --input-file .input.yaml --secret-file .secret.yml --artifact-server-path ./uploads
DEBU[0000] Loading environment from /home/user/src/TestCallingReusableWorkflow/.env 
DEBU[0000] Loading action inputs from /home/user/src/TestCallingReusableWorkflow/.input.yaml 
DEBU[0000] Conditional GET for notices etag=e5d33e8d-3aa8-4757-bf67-4ae89b8738c9 
DEBU[0000] Loading secrets from /home/user/src/TestCallingReusableWorkflow/.secret.yml 
DEBU[0000] Evaluated matrix inclusions: map[]           
DEBU[0000] Loading workflow '/home/user/src/TestCallingReusableWorkflow/.github/workflows/call-workflow.yaml' 
DEBU[0000] Reading workflow '/home/user/src/TestCallingReusableWorkflow/.github/workflows/call-workflow.yaml' 
DEBU[0000] Preparing plan with all jobs                 
DEBU[0000] Using the only detected workflow event: workflow_dispatch 
DEBU[0000] Planning jobs for event: workflow_dispatch   
DEBU[0000] Artifacts base path './uploads'              
INFO[0000] Start server on http://172.17.0.3:34567      
DEBU[0000] gc: 2023-06-21 17:20:59.024985865 +0800 +08 m=+0.008724539  module=artifactcache
DEBU[0000] Final matrix after applying user inclusions '[map[]]' 
DEBU[0000] Loading revision from git directory          
DEBU[0000] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e 
DEBU[0000] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e' 
DEBU[0000] using github ref: refs/heads/main            
DEBU[0000] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e 
[Call Reusable Workflow/call-reusable-workflow] [DEBUG] evaluating expression 'success()'
[Call Reusable Workflow/call-reusable-workflow] [DEBUG] expression 'success()' evaluated to 'true'
DEBU[0000] Loading workflow '/home/user/.cache/act/wildsheepz-TestReusableWorkflow@main/.github/workflows/main.yaml' 
DEBU[0000] Reading workflow '/home/user/.cache/act/wildsheepz-TestReusableWorkflow@main/.github/workflows/main.yaml' 
DEBU[0000] Final matrix after applying user inclusions '[map[]]' 
[Call Reusable Workflow/call-reusable-workflow] [DEBUG] Loading revision from git directory
[Call Reusable Workflow/call-reusable-workflow] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[Call Reusable Workflow/call-reusable-workflow] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e'
[Call Reusable Workflow/call-reusable-workflow] [DEBUG] using github ref: refs/heads/main
[Call Reusable Workflow/call-reusable-workflow] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] evaluating expression 'success()'
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] expression 'success()' evaluated to 'true'
[call-reusable-workflow/main.yaml/pre-task-prep] 🚀  Start image=localhost:9283/runner:latest
[call-reusable-workflow/main.yaml/pre-task-prep]   🐳  docker pull image=localhost:9283/runner:latest platform= username= forcePull=true
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG]   🐳  docker pull localhost:9283/runner:latest
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] pulling image 'localhost:9283/runner:latest' ()
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Pulling from runner :: latest
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Digest: sha256:136719b1aaba04902c687a41caaa30014338566ea8ad431c32251cca32a8c8f3 :: 
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Status: Image is up to date for localhost:9283/runner:latest :: 
[call-reusable-workflow/main.yaml/pre-task-prep]   🐳  docker create image=localhost:9283/runner:latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Common container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:false AttachStderr:false ExposedPorts:map[] Tty:true OpenStdin:false StdinOnce:false Env:[RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:localhost:9283/runner:latest Volumes:map[] WorkingDir:/home/user/src/TestCallingReusableWorkflow Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Common container.HostConfig ==> &{Binds:[/var/run/docker.sock:/var/run/docker.sock] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:host PortBindings:map[] RestartPolicy:{Name: MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:0 NanoCPUs:0 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:0 MemorySwappiness:<nil> OomKillDisable:<nil> PidsLimit:<nil> Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[{Type:volume Source:act-call-reusable-workflow-main-yaml-pre-task-prep-43930e834ebd32cfb27ac26f56937f98f632d5ebbe5d96796e439958c260a09a-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-call-reusable-workflow-main-yaml-pre-task-prep-43930e834ebd32cfb27ac26f56937f98f632d5ebbe5d96796e439958c260a09a Target:/home/user/src/TestCallingReusableWorkflow ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-toolcache Target:/toolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Created container name=act-call-reusable-workflow-main-yaml-pre-task-prep-43930e834ebd32cfb27ac26f56937f98f632d5ebbe5d96796e439958c260a09a id=a8ea83555a947eb4b9e579adf830da15022fb64bc1d5dd932b54f5c3746c00be from image localhost:9283/runner:latest (platform: )
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8]
[call-reusable-workflow/main.yaml/pre-task-prep]   🐳  docker run image=localhost:9283/runner:latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Starting container: a8ea83555a947eb4b9e579adf830da15022fb64bc1d5dd932b54f5c3746c00be
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Started container: a8ea83555a947eb4b9e579adf830da15022fb64bc1d5dd932b54f5c3746c00be
[call-reusable-workflow/main.yaml/pre-task-prep]   🐳  docker exec cmd=[chown -R 1001:1001 /home/user/src/TestCallingReusableWorkflow] user=0 workdir=
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Exec command '[chown -R 1001:1001 /home/user/src/TestCallingReusableWorkflow]'
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Working directory '/home/user/src/TestCallingReusableWorkflow'
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Writing entry to tarball workflow/event.json len:2
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Extracting content to '/var/run/act/'
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e'
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e'
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e'
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e'
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://172.17.0.3:33597/ ACTIONS_RUNTIME_TOKEN:token ACTIONS_RUNTIME_URL:http://172.17.0.3:34567/ CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:workflow_dispatch GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:pre-task-prep GITHUB_REF:refs/heads/main GITHUB_REF_NAME:main GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:wildsheepz/TestCallingReusableWorkflow GITHUB_REPOSITORY_OWNER:wildsheepz GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:49edfbb5dce386a8d80611ca9d0be752cd42859e GITHUB_TOKEN: GITHUB_WORKFLOW:main.yaml GITHUB_WORKSPACE:/home/user/src/TestCallingReusableWorkflow ImageOS:selfhosted RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e'
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e'
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] evaluating expression ''
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] expression '' evaluated to 'true'
[call-reusable-workflow/main.yaml/pre-task-prep] ⭐ Run Main Print Repo and Branch name to be scanned.
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Extracting content to '/var/run/act'
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e'
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e'
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e'
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e'
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Wrote command 

echo prepare to do more stuff


 to 'workflow/0'
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Writing entry to tarball workflow/0 len:32
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Extracting content to '/var/run/act'
[call-reusable-workflow/main.yaml/pre-task-prep]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/0] user= workdir=
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Exec command '[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/0]'
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Working directory '/home/user/src/TestCallingReusableWorkflow'
| prepare to do more stuff
[call-reusable-workflow/main.yaml/pre-task-prep]   ✅  Success - Main Print Repo and Branch name to be scanned.
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Removed container: a8ea83555a947eb4b9e579adf830da15022fb64bc1d5dd932b54f5c3746c00be
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG]   🐳  docker volume rm act-call-reusable-workflow-main-yaml-pre-task-prep-43930e834ebd32cfb27ac26f56937f98f632d5ebbe5d96796e439958c260a09a
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG]   🐳  docker volume rm act-call-reusable-workflow-main-yaml-pre-task-prep-43930e834ebd32cfb27ac26f56937f98f632d5ebbe5d96796e439958c260a09a-env
[call-reusable-workflow/main.yaml/pre-task-prep] 🏁  Job succeeded
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e'
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e'
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main
[call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
DEBU[0000] Final matrix after applying user inclusions '[map[]]' 
[Call Reusable Workflow/call-reusable-workflow] [DEBUG] Loading revision from git directory
[Call Reusable Workflow/call-reusable-workflow] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[Call Reusable Workflow/call-reusable-workflow] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e'
[Call Reusable Workflow/call-reusable-workflow] [DEBUG] using github ref: refs/heads/main
[Call Reusable Workflow/call-reusable-workflow] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e
[call-reusable-workflow/main.yaml/do-more-stuff] [DEBUG] evaluating expression 'success()'
[call-reusable-workflow/main.yaml/do-more-stuff] [DEBUG] expression 'success()' evaluated to 'true'
Error: stat /home/user/src/TestCallingReusableWorkflow/.github/workflows/do-more-stuff.yaml: no such file or directory

Additional information

Nektos Run:

act -W .github/workflows/call-workflow.yaml --rm -P self-hosted=localhost:9283/runner:latest -P ubuntu:22.04=localhost:9283/runner:latest -P ubuntu:20.04=localhost:9283/runner:latest -P ubuntu:18.04=localhost:9283/runner:latest -P ubuntu-latest=localhost:9283/runner:latest --artifact-server-path ./uploads
INFO[0000] Start server on http://172.17.0.3:34567      
[call-reusable-workflow/main.yaml/pre-task-prep] 🚀  Start image=localhost:9283/runner:latest
[call-reusable-workflow/main.yaml/pre-task-prep]   🐳  docker pull image=localhost:9283/runner:latest platform= username= forcePull=true
[call-reusable-workflow/main.yaml/pre-task-prep]   🐳  docker create image=localhost:9283/runner:latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[call-reusable-workflow/main.yaml/pre-task-prep]   🐳  docker run image=localhost:9283/runner:latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[call-reusable-workflow/main.yaml/pre-task-prep]   🐳  docker exec cmd=[chown -R 1001:1001 /home/user/src/TestCallingReusableWorkflow] user=0 workdir=
[call-reusable-workflow/main.yaml/pre-task-prep] ⭐ Run Main Print Repo and Branch name to be scanned.
[call-reusable-workflow/main.yaml/pre-task-prep]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/0] user= workdir=
| prepare to do more stuff
[call-reusable-workflow/main.yaml/pre-task-prep]   ✅  Success - Main Print Repo and Branch name to be scanned.
[call-reusable-workflow/main.yaml/pre-task-prep] 🏁  Job succeeded
Error: stat /home/user/src/TestCallingReusableWorkflow/.github/workflows/do-more-stuff.yaml: no such file or directory

Github Actions Run:
image

Originally created by @wildsheepz on GitHub (Jun 21, 2023). Original GitHub issue: https://github.com/nektos/act/issues/1875 ### Bug report info ```plain text act version: 0.2.46 GOOS: linux GOARCH: amd64 NumCPU: 8 Docker host: DOCKER_HOST environment variable is not set Sockets found: /var/run/docker.sock Config files: Build info: Go version: go1.18.10 Module path: github.com/nektos/act Main version: (devel) Main path: github.com/nektos/act Main checksum: Build settings: -compiler: gc -ldflags: -s -w -X main.version=0.2.46 -X main.commit=b0d0cec71f2240fc629dcaa1889ed8c4ad52beb9 -X main.date=2023-06-01T02:39:24Z -X main.builtBy=goreleaser CGO_ENABLED: 0 GOARCH: amd64 GOOS: linux GOAMD64: v1 vcs: git vcs.revision: b0d0cec71f2240fc629dcaa1889ed8c4ad52beb9 vcs.time: 2023-06-01T02:39:05Z vcs.modified: false Docker Engine: Engine version: 24.0.2 Engine runtime: runc Cgroup version: 2 Cgroup driver: systemd Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Ubuntu 20.04.6 LTS OS type: linux OS version: 20.04 OS arch: x86_64 OS kernel: 5.15.89+ OS CPU: 8 OS memory: 31138 MB Security options: name=apparmor name=seccomp,profile=builtin name=cgroupns ``` ### Command used with act ```sh act -W .github/workflows/call-workflow.yaml --rm -P self-hosted=localhost:9283/runner:latest -P ubuntu:22.04=localhost:9283/runner:latest -P ubuntu:20.04=localhost:9283/runner:latest -P ubuntu:18.04=localhost:9283/runner:latest -P ubuntu-latest=localhost:9283/runner:latest --artifact-server-path ./uploads ``` ### Describe issue What I'm trying to do in the reusable workflow is [call-workflow-2-in-local-repo](https://docs.github.com/en/actions/using-workflows/reusing-workflows#calling-a-reusable-workflow). It seems that nektos wrongly tries to find the reusable workflow's subworkflow yaml at the wrong path, resulting in a `Error: stat /home/user/src/TestCallingReusableWorkflow/.github/workflows/do-more-stuff.yaml: no such file or directory` I created 2 repositories with simple workflows to replicate this issue, refer to or checkout the following 2 repositories to reproduce the issue: - https://github.com/wildsheepz/TestReusableWorkflow - https://github.com/wildsheepz/TestCallingReusableWorkflow ### Link to GitHub repository https://github.com/wildsheepz/TestCallingReusableWorkflow ### Workflow content ```yml name: Call Reusable Workflow on: workflow_dispatch: jobs: call-reusable-workflow: uses: wildsheepz/TestReusableWorkflow/.github/workflows/main.yaml@main secrets: inherit # wildsheepz/TestReusableWorkflow/.github/workflows/main.yaml on: workflow_call: jobs: pre-task-prep: runs-on: self-hosted steps: - name: Print Repo and Branch name to be scanned. run: | echo prepare to do more stuff do-more-stuff: needs: pre-task-prep uses: ./.github/workflows/do-more-stuff.yaml secrets: inherit # wildsheepz/TestReusableWorkflow/.github/workflows/do-more-stuff.yaml on: workflow_call: jobs: start-doing-stuff: runs-on: self-hosted steps: - name: step one of doing more stuff id: example run: | echo "I am doing more stuff now" ``` ### Relevant log output ```sh act -v -W .github/workflows/call-workflow.yaml --rm -P self-hosted=localhost:9283/runner:latest -P ubuntu:22.04=localhost:9283/runner:latest -P ubuntu:20.04=localhost:9283/runner:latest -P ubuntu:18.04=localhost:9283/runner:latest -P ubuntu-latest=localhost:9283/runner:latest --input-file .input.yaml --secret-file .secret.yml --artifact-server-path ./uploads DEBU[0000] Loading environment from /home/user/src/TestCallingReusableWorkflow/.env DEBU[0000] Loading action inputs from /home/user/src/TestCallingReusableWorkflow/.input.yaml DEBU[0000] Conditional GET for notices etag=e5d33e8d-3aa8-4757-bf67-4ae89b8738c9 DEBU[0000] Loading secrets from /home/user/src/TestCallingReusableWorkflow/.secret.yml DEBU[0000] Evaluated matrix inclusions: map[] DEBU[0000] Loading workflow '/home/user/src/TestCallingReusableWorkflow/.github/workflows/call-workflow.yaml' DEBU[0000] Reading workflow '/home/user/src/TestCallingReusableWorkflow/.github/workflows/call-workflow.yaml' DEBU[0000] Preparing plan with all jobs DEBU[0000] Using the only detected workflow event: workflow_dispatch DEBU[0000] Planning jobs for event: workflow_dispatch DEBU[0000] Artifacts base path './uploads' INFO[0000] Start server on http://172.17.0.3:34567 DEBU[0000] gc: 2023-06-21 17:20:59.024985865 +0800 +08 m=+0.008724539 module=artifactcache DEBU[0000] Final matrix after applying user inclusions '[map[]]' DEBU[0000] Loading revision from git directory DEBU[0000] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e DEBU[0000] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e' DEBU[0000] using github ref: refs/heads/main DEBU[0000] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [Call Reusable Workflow/call-reusable-workflow] [DEBUG] evaluating expression 'success()' [Call Reusable Workflow/call-reusable-workflow] [DEBUG] expression 'success()' evaluated to 'true' DEBU[0000] Loading workflow '/home/user/.cache/act/wildsheepz-TestReusableWorkflow@main/.github/workflows/main.yaml' DEBU[0000] Reading workflow '/home/user/.cache/act/wildsheepz-TestReusableWorkflow@main/.github/workflows/main.yaml' DEBU[0000] Final matrix after applying user inclusions '[map[]]' [Call Reusable Workflow/call-reusable-workflow] [DEBUG] Loading revision from git directory [Call Reusable Workflow/call-reusable-workflow] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [Call Reusable Workflow/call-reusable-workflow] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e' [Call Reusable Workflow/call-reusable-workflow] [DEBUG] using github ref: refs/heads/main [Call Reusable Workflow/call-reusable-workflow] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] evaluating expression 'success()' [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] expression 'success()' evaluated to 'true' [call-reusable-workflow/main.yaml/pre-task-prep] 🚀 Start image=localhost:9283/runner:latest [call-reusable-workflow/main.yaml/pre-task-prep] 🐳 docker pull image=localhost:9283/runner:latest platform= username= forcePull=true [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] 🐳 docker pull localhost:9283/runner:latest [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] pulling image 'localhost:9283/runner:latest' () [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Pulling from runner :: latest [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Digest: sha256:136719b1aaba04902c687a41caaa30014338566ea8ad431c32251cca32a8c8f3 :: [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Status: Image is up to date for localhost:9283/runner:latest :: [call-reusable-workflow/main.yaml/pre-task-prep] 🐳 docker create image=localhost:9283/runner:latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Common container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:false AttachStderr:false ExposedPorts:map[] Tty:true OpenStdin:false StdinOnce:false Env:[RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:localhost:9283/runner:latest Volumes:map[] WorkingDir:/home/user/src/TestCallingReusableWorkflow Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]} [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Common container.HostConfig ==> &{Binds:[/var/run/docker.sock:/var/run/docker.sock] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:host PortBindings:map[] RestartPolicy:{Name: MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:0 NanoCPUs:0 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:0 MemorySwappiness:<nil> OomKillDisable:<nil> PidsLimit:<nil> Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[{Type:volume Source:act-call-reusable-workflow-main-yaml-pre-task-prep-43930e834ebd32cfb27ac26f56937f98f632d5ebbe5d96796e439958c260a09a-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-call-reusable-workflow-main-yaml-pre-task-prep-43930e834ebd32cfb27ac26f56937f98f632d5ebbe5d96796e439958c260a09a Target:/home/user/src/TestCallingReusableWorkflow ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-toolcache Target:/toolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>} [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Created container name=act-call-reusable-workflow-main-yaml-pre-task-prep-43930e834ebd32cfb27ac26f56937f98f632d5ebbe5d96796e439958c260a09a id=a8ea83555a947eb4b9e579adf830da15022fb64bc1d5dd932b54f5c3746c00be from image localhost:9283/runner:latest (platform: ) [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8] [call-reusable-workflow/main.yaml/pre-task-prep] 🐳 docker run image=localhost:9283/runner:latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Starting container: a8ea83555a947eb4b9e579adf830da15022fb64bc1d5dd932b54f5c3746c00be [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Started container: a8ea83555a947eb4b9e579adf830da15022fb64bc1d5dd932b54f5c3746c00be [call-reusable-workflow/main.yaml/pre-task-prep] 🐳 docker exec cmd=[chown -R 1001:1001 /home/user/src/TestCallingReusableWorkflow] user=0 workdir= [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Exec command '[chown -R 1001:1001 /home/user/src/TestCallingReusableWorkflow]' [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Working directory '/home/user/src/TestCallingReusableWorkflow' [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Writing entry to tarball workflow/event.json len:2 [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Writing entry to tarball workflow/envs.txt len:0 [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Extracting content to '/var/run/act/' [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e' [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e' [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e' [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e' [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://172.17.0.3:33597/ ACTIONS_RUNTIME_TOKEN:token ACTIONS_RUNTIME_URL:http://172.17.0.3:34567/ CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:workflow_dispatch GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:pre-task-prep GITHUB_REF:refs/heads/main GITHUB_REF_NAME:main GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:wildsheepz/TestCallingReusableWorkflow GITHUB_REPOSITORY_OWNER:wildsheepz GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:49edfbb5dce386a8d80611ca9d0be752cd42859e GITHUB_TOKEN: GITHUB_WORKFLOW:main.yaml GITHUB_WORKSPACE:/home/user/src/TestCallingReusableWorkflow ImageOS:selfhosted RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:] [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e' [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e' [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] evaluating expression '' [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] expression '' evaluated to 'true' [call-reusable-workflow/main.yaml/pre-task-prep] ⭐ Run Main Print Repo and Branch name to be scanned. [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0 [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0 [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0 [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Writing entry to tarball workflow/envs.txt len:0 [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0 [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Extracting content to '/var/run/act' [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e' [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e' [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e' [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e' [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Wrote command echo prepare to do more stuff to 'workflow/0' [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Writing entry to tarball workflow/0 len:32 [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Extracting content to '/var/run/act' [call-reusable-workflow/main.yaml/pre-task-prep] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/0] user= workdir= [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Exec command '[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/0]' [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Working directory '/home/user/src/TestCallingReusableWorkflow' | prepare to do more stuff [call-reusable-workflow/main.yaml/pre-task-prep] ✅ Success - Main Print Repo and Branch name to be scanned. [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Removed container: a8ea83555a947eb4b9e579adf830da15022fb64bc1d5dd932b54f5c3746c00be [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] 🐳 docker volume rm act-call-reusable-workflow-main-yaml-pre-task-prep-43930e834ebd32cfb27ac26f56937f98f632d5ebbe5d96796e439958c260a09a [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] 🐳 docker volume rm act-call-reusable-workflow-main-yaml-pre-task-prep-43930e834ebd32cfb27ac26f56937f98f632d5ebbe5d96796e439958c260a09a-env [call-reusable-workflow/main.yaml/pre-task-prep] 🏁 Job succeeded [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e' [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Loading revision from git directory [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e' [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] using github ref: refs/heads/main [call-reusable-workflow/main.yaml/pre-task-prep] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e DEBU[0000] Final matrix after applying user inclusions '[map[]]' [Call Reusable Workflow/call-reusable-workflow] [DEBUG] Loading revision from git directory [Call Reusable Workflow/call-reusable-workflow] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [Call Reusable Workflow/call-reusable-workflow] [DEBUG] HEAD points to '49edfbb5dce386a8d80611ca9d0be752cd42859e' [Call Reusable Workflow/call-reusable-workflow] [DEBUG] using github ref: refs/heads/main [Call Reusable Workflow/call-reusable-workflow] [DEBUG] Found revision: 49edfbb5dce386a8d80611ca9d0be752cd42859e [call-reusable-workflow/main.yaml/do-more-stuff] [DEBUG] evaluating expression 'success()' [call-reusable-workflow/main.yaml/do-more-stuff] [DEBUG] expression 'success()' evaluated to 'true' Error: stat /home/user/src/TestCallingReusableWorkflow/.github/workflows/do-more-stuff.yaml: no such file or directory ``` ### Additional information Nektos Run: ``` act -W .github/workflows/call-workflow.yaml --rm -P self-hosted=localhost:9283/runner:latest -P ubuntu:22.04=localhost:9283/runner:latest -P ubuntu:20.04=localhost:9283/runner:latest -P ubuntu:18.04=localhost:9283/runner:latest -P ubuntu-latest=localhost:9283/runner:latest --artifact-server-path ./uploads INFO[0000] Start server on http://172.17.0.3:34567 [call-reusable-workflow/main.yaml/pre-task-prep] 🚀 Start image=localhost:9283/runner:latest [call-reusable-workflow/main.yaml/pre-task-prep] 🐳 docker pull image=localhost:9283/runner:latest platform= username= forcePull=true [call-reusable-workflow/main.yaml/pre-task-prep] 🐳 docker create image=localhost:9283/runner:latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] [call-reusable-workflow/main.yaml/pre-task-prep] 🐳 docker run image=localhost:9283/runner:latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] [call-reusable-workflow/main.yaml/pre-task-prep] 🐳 docker exec cmd=[chown -R 1001:1001 /home/user/src/TestCallingReusableWorkflow] user=0 workdir= [call-reusable-workflow/main.yaml/pre-task-prep] ⭐ Run Main Print Repo and Branch name to be scanned. [call-reusable-workflow/main.yaml/pre-task-prep] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/0] user= workdir= | prepare to do more stuff [call-reusable-workflow/main.yaml/pre-task-prep] ✅ Success - Main Print Repo and Branch name to be scanned. [call-reusable-workflow/main.yaml/pre-task-prep] 🏁 Job succeeded Error: stat /home/user/src/TestCallingReusableWorkflow/.github/workflows/do-more-stuff.yaml: no such file or directory ``` Github Actions Run: ![image](https://github.com/nektos/act/assets/7615185/e0152fc7-b805-4db9-975e-3fb7043dd5ea)
Author
Owner

@daniel-habib commented on GitHub (Oct 1, 2023):

@wildsheepz : the workaround i found was to keep the reusable workflow locally and the point to that e.g.
replace your

    uses: wildsheepz/TestReusableWorkflow/.github/workflows/main.yaml@main

with

    uses: ./../TestReusableWorkflow/.github/workflows/main.yaml

did you find any thing more elegant than that?

<!-- gh-comment-id:1742110398 --> @daniel-habib commented on GitHub (Oct 1, 2023): @wildsheepz : the workaround i found was to keep the reusable workflow locally and the point to that e.g. replace your ```yaml uses: wildsheepz/TestReusableWorkflow/.github/workflows/main.yaml@main ``` with ```yaml uses: ./../TestReusableWorkflow/.github/workflows/main.yaml ``` did you find any thing more elegant than that?
Author
Owner

@J-Blaha commented on GitHub (Feb 21, 2024):

Any updates on this? Thanks!

<!-- gh-comment-id:1957122026 --> @J-Blaha commented on GitHub (Feb 21, 2024): Any updates on this? Thanks!
Author
Owner

@github-actions[bot] commented on GitHub (Aug 20, 2024):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:2297730231 --> @github-actions[bot] commented on GitHub (Aug 20, 2024): Issue is stale and will be closed in 14 days unless there is new activity
Author
Owner

@MaeIsBad commented on GitHub (Dec 19, 2024):

Stalebots are the worst

<!-- gh-comment-id:2553998875 --> @MaeIsBad commented on GitHub (Dec 19, 2024): Stalebots are the worst
Author
Owner

@mcascone commented on GitHub (Jun 10, 2025):

Same issue: It's looking for the reusable workflows in the calling repo, instead of in the local-repository.

# .actrc content
--local-repository repo/of/workflows@branchname=/Users/casconem/github/repo/of/workflows

# calling repo's workflow
uses: calling/repo/.github/workflows/master-pipeline.yml@branchname

# cli command in calling/repo
act -W .github/workflows/calling-workflow.yml 

# act output
[job] LocalRepositoryCache matched https://github.com/repo/of/workflows with ref branchname to /Users/casconem/github/repo/of/workflows
[job] LocalRepositoryCache read cachedir repo/of/workflows@branchname with ref branchname and subpath '.github/workflows/master-pipeline.yml' from /Users/casconem/github/repo/of/workflows
Error: stat /Users/casconem/github/calling/repo/.github/workflows/init.yml: no such file or directory
<!-- gh-comment-id:2960342773 --> @mcascone commented on GitHub (Jun 10, 2025): Same issue: It's looking for the reusable workflows in the calling repo, instead of in the `local-repository`. ```shell # .actrc content --local-repository repo/of/workflows@branchname=/Users/casconem/github/repo/of/workflows # calling repo's workflow uses: calling/repo/.github/workflows/master-pipeline.yml@branchname # cli command in calling/repo act -W .github/workflows/calling-workflow.yml # act output [job] LocalRepositoryCache matched https://github.com/repo/of/workflows with ref branchname to /Users/casconem/github/repo/of/workflows [job] LocalRepositoryCache read cachedir repo/of/workflows@branchname with ref branchname and subpath '.github/workflows/master-pipeline.yml' from /Users/casconem/github/repo/of/workflows Error: stat /Users/casconem/github/calling/repo/.github/workflows/init.yml: no such file or directory ```
Author
Owner

@ChristopherHX commented on GitHub (Jun 10, 2025):

My existing backlog has hard times to get merged, I am going to reopen this issue. No promise for anything.

BTW the stale bot has been chased away, not that I ever added one any of my own projects.

<!-- gh-comment-id:2960754930 --> @ChristopherHX commented on GitHub (Jun 10, 2025): My existing backlog has hard times to get merged, I am going to reopen this issue. No promise for anything. BTW the stale bot has been chased away, not that I ever added one any of my own projects.
Author
Owner

@lfallon-manifest commented on GitHub (Jul 31, 2025):

I took a shot at resolving this issue in https://github.com/nektos/act/pull/5888. It worked both in the project I was encountering the issue in and in the original posts example.

<!-- gh-comment-id:3140727932 --> @lfallon-manifest commented on GitHub (Jul 31, 2025): I took a shot at resolving this issue in https://github.com/nektos/act/pull/5888. It worked both in the project I was encountering the issue in and in the original posts example.
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#909
No description provided.