Skip to content

Instantly share code, notes, and snippets.

@geoffreygarrett
Created February 18, 2022 09:42
Show Gist options
  • Save geoffreygarrett/1b5278442f2d158d8dc06050912af5c7 to your computer and use it in GitHub Desktop.
Save geoffreygarrett/1b5278442f2d158d8dc06050912af5c7 to your computer and use it in GitHub Desktop.
How to create a dispatch on a target repository with bash.
# 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