Multiple github composite actions in one repo


Does anyone know if it’s possible to have multiple github composite actions in one repository?

The reason behind this is, we have an organisation and want to have an internal repository within the organisation that contains github composite actions.

I was able to get one composite action working from an internal repository however when I try to add another composite action, it does not work :confused:


I’ve only briefly played with composite actions in the same repository as a workflow.

It might be possible to use multiple composite actions from a separate repository by checking out that repository side-by-side with, or nested within, your workflow’s repository.

- name: Checkout
  uses: actions/checkout@v2
    path: main

- name: Checkout actions repo
  uses: actions/checkout@v2
    repository: my-org/my-composite-actions
    path: my-composite-actions

- name: Run Custom Action A
  uses: ./my-composite-actions/.github/actions/custom-action-a

- name: Run Custom Action B
  uses: ./my-composite-actions/.github/actions/custom-action-b

Hi @mcaskill Thanks for the help. We actually were able to figure out the issue, our composite action repository scope was internal in the organisation. Once we set it to either public or private, the workflow in the other repository was able to find the composite action.