Is it possible to trigger a GitHub action to a different repository?

Viewed 1090

If I have a public repo which has a workflow setup to be triggered when something is pushed to master, can I then trigger another workflow from a different repo to trigger?

The reason I want to do this is because my public repo is used to allow anyone to contribute but I want to make another repo which is private that handles the build process/deployment that can't be seen. Is there a better way to handle this kind of use case with GitHub actions? - I basically don't want my build process on my server to be public.

1 Answers

From doing more research I found this marketplace plug-in which solves what I want and calls another repository which triggers another build which is a private repository, you can enter a name of your choice and have a front facing repo which is public and keep all your CI/CD stuff in a private repo:

https://github.com/marketplace/actions/dispatch-action

Related