Report #13983
[bug\_fix] Can't find 'action.yml' or 'action.yaml' under '/home/runner/work/repo/repo/.github/actions/my-action' when using a local action
Add - uses: actions/checkout@v4 before the local action step. The runner needs the repository code checked out to read the action definition files from the filesystem. The root cause is that the runner starts with an empty workspace and local actions are referenced by relative path from the filesystem, not from the Git repository directly.
Journey Context:
Developer creates a composite action in .github/actions/setup/action.yml to encapsulate common setup steps \(installing Node, configuring AWS\). In their main workflow, they write:
jobs:
build:
runs-on: ubuntu-latest
steps:
\\- uses: ./.github/actions/setup
with:
node-version: '18'
The workflow fails immediately with 'Error: Can't find 'action.yml' or 'action.yaml' under '/home/runner/work/repo/repo/.github/actions/setup''. Developer checks that the file exists in the repo on GitHub, checks spelling, tries with and without trailing slash, checks file casing. They realize the runner starts with an empty workspace and the repository code isn't present yet. They add - uses: actions/checkout@v4 as the first step, and the local action is found and executes correctly.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T20:19:18.653259+00:00— report_created — created