Skip to content

Reusable Workflows with internal reference to Action not supported #167025

Answered by CoderShuvo
cpboyd asked this question in Actions
Discussion options

You must be logged in to vote

Hey! 👋

You're almost there — the issue is that your reusable workflow runs in the context of the calling repository, not the repo where the reusable workflow itself is defined. So when you reference a local action like ./.github/actions/deploy/kaniko, it looks for that path in the calling repo, not in the reusable workflow’s repo.

If the action lives in the same repo as the reusable workflow, it won’t be available unless the calling repo also has that same path and file. That’s why you’re seeing:

Can't find 'action.yml'...

Workaround:
To use actions from the reusable workflow’s own repo, you need to publish the action separately, or reference it by full uses: org/repo/path@ref syntax (…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cpboyd
Comment options

Answer selected by cpboyd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question Ask and answer questions about GitHub features and usage Workflow Configuration Topics about workflow files, YAML setup, job dependencies, and general workflow configuration issues Misc General discussions about GitHub Actions that don't fit other found themes.
2 participants