msys2 / msys2-autobuild

🏭🏭🏭🏭🏭🏭🏭🏭
https://packages.msys2.org/queue
MIT License
35 stars 25 forks source link

Command to trigger workflows in the org #7

Closed eine closed 4 years ago

eine commented 4 years ago

As commented in https://github.com/msys2/msys2-devtools/commit/8e8334b69494ebd5a325f6af784be78bd22a9fbe#r41020641:

You can use some keyword to trigger an specific workflow in repos with multiple. Moreover, you can pass some metadata in the dispatch event, which you can use in the target (triggered) workflow. You might want to take this into account before implementing it. So, the same command might be used to trigger any workflow in any of the repos of the org. Just need to change the target repo and the keyword (and add matching "dispatch" fields to the workflows).

Cool stuff. Though I can't think of any use case right now.

I'm opening this issue as a reminder. For now, there are very few GHA workflows in the org, and the UI already allows to trigger them manually. Nevertheless, at some point it might be useful to cross-trigger workflows, or to use some external server.