Hello,
In my organization I have a repository called “shared-workflows”. How can these actions/workflows be called from other repositories?
ex:
MyOrg:
shared-workflows
gradle.yml
gradle-project
ci.yml → invoke shared wokflow gradle.yml
looking into documentation its not supported.
reference: Reusing workflows - GitHub Docs
I found needed answer. For enterprise accounts its possible to share internal reports for a given ORG. Follow the steps here: Sharing actions and workflows with your enterprise - GitHub Docs
Secondly you can create the following structure for shared flows
shared-workflows/.github/workflows/xxx.yml
This can be referred as
jobs:
call-workflow-in-another-repo:
uses: octo-org/another-repo/.github/workflows/workflow.yml@v1
Hope this will be helpful for all. This works like a charm.