Skip to content

Reusable workflow cannot find 'action.yml', 'action.yaml' or 'Dockerfile' #27362

Discussion options

You must be logged in to vote

This looks like you're trying to call the reusable workflow as a step, which isn't possible.

      - uses: ./.github/workflows/staging.yml
        with:
          branch_name: ${{ env.NAME }}

Reusable workflows must be called as jobs. If you want to reuse your code at the step level, take a look at composite actions.

Which fits better depends on what your code does, in short a reusable workflow is good if you want to reuse a workflow exactly as it is (possibly with parameters), custom actions (composite or not) are good if you want building blocks to use as steps in other workflows.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@owenconti
Comment options

@airtower-luna
Comment options

@joeythomaschaske
Comment options

@rajuashok
Comment options

@WckD123
Comment options

Answer selected by EmberRandall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment