dispatch.sh 297 B

12345
  1. REPOSITORY_REF="$1"
  2. TOKEN="$2"
  3. curl -H "Accept: application/vnd.github.everest-preview+json" -H "Authorization: token ${TOKEN}" --request POST --data '{"event_type": "request-build-reference"}' https://api.github.com/repos/${REPOSITORY_REF}/dispatches
  4. echo "Requested Build for $REPOSITORY_REF"