nix: Allow running postgrest-release on rel- branches

This commit is contained in:
Wolfgang Walther
2023-10-25 16:29:03 +02:00
parent d94286c185
commit 98bd1de1cd
+2 -2
View File
@@ -56,8 +56,8 @@ let
inRootDir = true;
}
''
trap "echo You need to be on the main branch to proceed. Exiting ..." ERR
[ "$(git rev-parse --abbrev-ref HEAD)" == "main" ]
trap "echo You need to be on the main branch or a release branch to proceed. Exiting ..." ERR
[[ "$(git rev-parse --abbrev-ref HEAD)" =~ ^main$|^rel- ]]
trap "" ERR
trap "echo You have uncommitted changes in postgrest.cabal. Exiting ..." ERR