Commit 858980fa authored by morgan's avatar morgan 😸
Browse files

Bug 41340: Update kick_devmole_build script with Mullvad's new GitHub workflow endpoint

parent d1862ebc
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -35,8 +35,14 @@ if [[ "${AUTH_TOKEN}" = "" ]]; then
    exit 1
fi

# make request
curl -X POST "https://drone-server.devmole.eu/api/repos/mullvad/browser-build/builds?branch=main&tag=${TAG}&release=${RELEASE}" -H "Authorization: Bearer ${AUTH_TOKEN}" -H "Accept: application/json"
# GitHub documentation: https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event
curl \
    -X POST \
    -H "Accept: application/vnd.github+json" \
    -H "Authorization: Bearer ${AUTH_TOKEN}" \
    -H "X-GitHub-Api-Version: 2022-11-28" \
    https://api.github.com/repos/mullvad/browser-build/actions/workflows/main.yml/dispatches \
    -d "{\"ref\":\"main\",\"inputs\":{\"tag\":\"${TAG}\",\"release\":\"${RELEASE}\"}}"

echo
echo Hashes will appear here: https://cdn.stagemole.eu/browser/hashes/[% c("var/projectname") %]/[% c("var/torbrowser_version") %]-[% c("var/torbrowser_build") %]/