Skip to content

Instantly share code, notes, and snippets.

@iamcryptoki
Created March 1, 2021 15:42
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save iamcryptoki/cfb4e6c5e64286aa1275204fd57cf2f0 to your computer and use it in GitHub Desktop.
Save iamcryptoki/cfb4e6c5e64286aa1275204fd57cf2f0 to your computer and use it in GitHub Desktop.
Run GitHub Actions Workflow using Curl (workflow_dispatch).
curl \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token <ACCESS_TOKEN_HERE>" \
https://api.github.com/repos/<ORG_OR_USERNAME>/<REPO>/actions/workflows/<FILENAME_OR_WORKFLOW_ID>/dispatches \
-d '{"ref":"refs/heads/master"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment