mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
50ea2d8164
Related to #2205 Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
12 lines
383 B
Bash
Executable File
12 lines
383 B
Bash
Executable File
#!/bin/bash
|
|
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"'"}}'
|