morgan pushed to branch main at The Tor Project / Applications / tor-browser-build
Commits:
-
1b3af9aa
by Morgan at 2024-12-19T14:29:51+00:00
1 changed file:
Changes:
... | ... | @@ -35,8 +35,14 @@ if [[ "${AUTH_TOKEN}" = "" ]]; then |
35 | 35 | exit 1
|
36 | 36 | fi
|
37 | 37 | |
38 | -# make request
|
|
39 | -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"
|
|
38 | +# GitHub documentation: https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event
|
|
39 | +curl \
|
|
40 | + -X POST \
|
|
41 | + -H "Accept: application/vnd.github+json" \
|
|
42 | + -H "Authorization: Bearer ${AUTH_TOKEN}" \
|
|
43 | + -H "X-GitHub-Api-Version: 2022-11-28" \
|
|
44 | + https://api.github.com/repos/mullvad/browser-build/actions/workflows/main.yml/dispatches \
|
|
45 | + -d "{\"ref\":\"main\",\"inputs\":{\"tag\":\"${TAG}\",\"release\":\"${RELEASE}\"}}"
|
|
40 | 46 | |
41 | 47 | echo
|
42 | 48 | echo Hashes will appear here: https://cdn.stagemole.eu/browser/hashes/[% c("var/projectname") %]/[% c("var/torbrowser_version") %]-[% c("var/torbrowser_build") %]/ |