zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit e81fda982372061fca56c7e43d1df1653446d2a8 (tree)
parent 7e2fae10c9ce320d7a407856cbb935f9a95c5443
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Fri,  3 Dec 2021 20:34:54 -0700

ci: make the on_master_success script fail on missing args

Diffstat:
Mci/srht/on_master_success | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/ci/srht/on_master_success b/ci/srht/on_master_success @@ -15,6 +15,16 @@ VERSION="$1" OAUTH_TOKEN="$2" YML_FILE="tmp.yml" +if [[ -z "$VERSION" ]]; then + echo "missing VERSION parameter" + exit 1 +fi + +if [[ -z "$OAUTH_TOKEN" ]]; then + echo "missing OAUTH_TOKEN parameter" + exit 1 +fi + cat <<EOF >"$YML_FILE" image: alpine/latest packages: