Hi, I’d like to ask if there’s a way of triggering actions from other repository webhooks without leaving GitHub platform.
For example, when there’s a new release on elixir-lang/elixir, I’d like to trigger a workflow in my docker-elixir repository, ideally with the event (ReleaseEvent) payload. Ideally this would be totally decoupled and I could subscribe to any repository webhooks, even those I don’t have write access to.
repository_dispatch trigger for actions, but I believe it only has event_type field, not the whole payload. Also, I believe it’s not possible to trigger that event from a webhook, I was getting authorization failures.
I noticed there’s a preview support for WebSub, it looks like by subscribing to a topic we (understandably so) set up a webhook, but this means I can only subscribe to repos I am allowed to create webhooks on.
This can be solved today by having a workflow in my docker-elixir that runs on schedule and checks whether there’s a new release in elixir-lang/elixir, and if so it buils the image. If I get elixir-lang/elixir maintainers to set up a webhook, that webhook could hit a web app I maintain that in turn would trigger
repository_event which again would check whether there are any new releases. While the 2nd option avoids doing unnecessary checks it brings a ton of complexity.
Are there any other ways of solving this?