Skip to content

A little sample on how to trigger a GitHub Action via webhook, as explained in the blog post

License

Notifications You must be signed in to change notification settings

s1h-org/actions-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

actions-webhook

A little sample on how to trigger a GitHub Action via webhook.

We can trigger GitHub Actions workflow runs via webhook using creating a repository_dispatch event via GitHub API:

curl -H "Authorization: token <YOUR_GITHUB_TOKEN>" \
    --request POST \
    --data '{"event_type": "<YOUR_EVENT_TYPE>"}' \
    https://api.github.com/repos/<YOUR_GITHUB_USER>/<YOUR_GITHUB_REPO>/dispatches

About

A little sample on how to trigger a GitHub Action via webhook, as explained in the blog post

Topics

Resources

License

Stars

Watchers

Forks