build: extract debian binary packaging workflow trigger into a reusable script

This commit is contained in:
Christian Schwarz
2020-07-26 13:41:53 +02:00
parent a0e3dc7040
commit 1d7a84e8ae
2 changed files with 18 additions and 6 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
COMMIT="$1"
GO_VERSION="$2"
curl -v -X POST https://api.github.com/repos/zrepl/debian-binary-packaging/dispatches \
-H 'Accept: application/vnd.github.v3+json' \
-H "Authorization: token $GITHUB_ACCESS_TOKEN" \
--data '{"event_type": "push", "client_payload": { "zrepl_main_repo_commit": "'"$COMMIT"'", "go_version": "'"$GO_VERSION"'" }}'