Skip to content

Trigger a workflow using the repository dispatch event.

License

Notifications You must be signed in to change notification settings

francisfuzz/on-dispatch-trigger-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

on-dispatch-trigger-workflow

This repository is an example of triggering a GitHub Actions workflow via the repository dispatch event.

The repository dispatch event will trigger a new workflow execution that creates or updates your repo's dates.txt with a new date.

Usage

  • Fork the repo to your account
  • Ensure curl is installed. (https://curl.haxx.se/)
  • Then, Open the command line interface application of your choice and make this curl request, replacing $TOKEN with a personal access token and :owner and :repo with the appropriate values
curl -v -H "Accept: application/vnd.github.everest-preview+json" \
  -H "Authorization: token $TOKEN" \
  https://api.github.com/repos/:owner/:repo/dispatches \
  -d '{"event_type":"update-dates-file"}'

About

Trigger a workflow using the repository dispatch event.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published