ci: make the on_master_success script fail on missing args

This commit is contained in:
Andrew Kelley
2021-12-03 20:34:54 -07:00
parent 7e2fae10c9
commit e81fda9823

View File

@@ -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: