How do you reference a local action stored in '.github/actions/setup-env' within the same repository?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Local actions use a relative path starting with './' — the dot-slash tells GitHub Actions it's a local directory, not a Marketplace action.
Full explanation below image
Full Explanation
Local actions in the same repository are referenced with a relative path starting with './' pointing to the directory containing the action.yml. './.github/actions/setup-env' is the correct syntax — note the leading './' which distinguishes local paths from marketplace references (owner/repo@version). The path must start with './' or '../'. 'local:' is not a valid prefix. '@self' is not valid syntax. Local action paths are relative to the workspace root (the checked-out repository root, not the workflow file location).