Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 958 Bytes

File metadata and controls

19 lines (13 loc) · 958 Bytes

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"}'