Created
February 18, 2022 09:42
-
-
Save geoffreygarrett/1b5278442f2d158d8dc06050912af5c7 to your computer and use it in GitHub Desktop.
How to create a dispatch on a target repository with bash.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TODO: replace event_type, token, repo and optional_json. | |
curl -H "Authorization: token {{ token }}" \ | |
-H 'Accept: application/vnd.github.everest-preview+json' \ | |
"https://api.github.com/repos/{{ owner }}/{{ repo }}/dispatches" \ | |
-d '{"event_type": "{{ event_type }}", "client_payload": {{ optional_json | {} }}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment