From c1917b7d0adf5e20d879b9e64926a9b8d4b64825 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sun, 20 Jun 2021 23:04:56 +0100 Subject: [PATCH] Must be in master branch before you can release --- release.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/release.sh b/release.sh index ba075463..be4eaf85 100755 --- a/release.sh +++ b/release.sh @@ -39,6 +39,12 @@ if [ ! -z "$(git status --porcelain)" ]; then exit 1 fi +# Check that we are in the master branch +if [ "$(git symbolic-ref --short HEAD)" != "master" ]; then + echo "You must be in the master branch before releasing" + exit 1 +fi + # Sanity check to make sure the build works (cd agb && cargo test) (cd agb-image-converter && cargo test)