Add Dispatch to build reference

This commit is contained in:
Rob Winch
2021-08-18 11:27:45 -05:00
parent 0864140dda
commit 00abd345ac
4 changed files with 50 additions and 0 deletions

5
.github/actions/dispatch.sh vendored Executable file
View File

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