Executes actions on demand, to test doing things outside of a long PR cycle.
To use:
- Create an action in
.github/workflows - Give the action a unique custom name, and use it in the conditions of the action
- Get a personal access token, instructions here
- Execute the curl command
REPO=deitch/actions-test # change this to your repo!
TOKEN=mytoken # change this to your token!
ACTION=multiarch # change this to your action!
curl -X POST https://api.github.com/repos/${REPO}/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-H "Authorization: token $TOKEN" \
--data '{"event_type": "'$ACTION'"}'