diff --git a/.github/scripts/release.sh b/.github/scripts/release.sh index 35568a2..ebffc94 100644 --- a/.github/scripts/release.sh +++ b/.github/scripts/release.sh @@ -13,6 +13,12 @@ set -e set -o pipefail UPSTREAM_BRANCH="main" +# Check the number of arguments passed. +if [ "$#" -ne 3 ]; then + echo "Error: Invalid or insufficient arguments provided!" >&2 + echo "Usage: $0 " >&2 + exit 1 +fi # Assign command line arguments to variables. GIT_TOKEN=$1