Created
March 1, 2021 15:42
-
-
Save iamcryptoki/cfb4e6c5e64286aa1275204fd57cf2f0 to your computer and use it in GitHub Desktop.
Run GitHub Actions Workflow using Curl (workflow_dispatch).
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
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