Trigger workflow from url

It’s probably pretty obvious, but I can’t just find anything about; how do I trigger a workflow from a URL? Trying to build and deploy a static site (which gets its content from a CMS which can trigger webhooks) but I can’t find about how to trigger the workflow from outside.

Edit: Seems like it’s https://help.github.com/en/articles/events-that-trigger-workflows#external-events-repository_dispatch - but I’m not entirely sure about that.

Edit 2: So here’s what I did so far:

  • created a personal access token
  • added the repository_dispatch to my workflow triggers
  • tried to cURL to https://api.github.com/repos/<name>/<repo>/dispatches - but it returned 404 
1 Like

I had some trouble triggering a workflow as well. Here are some questions / suggestions that may be the cause of your problem:

2 Likes