-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1457 from galal-hussein/dispatch_backport
Send dispatch event with drone
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
set -e | ||
set -x | ||
|
||
REPO="https://api.github.com/repos/rancher/k3s-upgrade/dispatches" | ||
|
||
# send dispatch event to REPO | ||
curl -XPOST -u "${PAT_USERNAME}:${PAT_TOKEN}" \ | ||
-H "Accept: application/vnd.github.everest-preview+json" \ | ||
-H "Content-Type: application/json" $REPO \ | ||
--data '{"event_type": "create_tag", "client_payload": {"tag":"'"$DRONE_TAG"'"}}' |