spring-security/.github/actions/dispatch.sh

6 lines
297 B
Bash
Raw Normal View History

2021-07-27 14:02:21 -04:00
REPOSITORY_REF="$1"
TOKEN="$2"
2021-11-08 14:35:57 -05:00
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
echo "Requested Build for $REPOSITORY_REF"