diff --git a/ci/srht/on_master_success b/ci/srht/on_master_success index 07632e737a..e565a1e3a8 100755 --- 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 <"$YML_FILE" image: alpine/latest packages: