Skip to content

Commit

Permalink
nix: Allow running postgrest-release on rel- branches
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther committed Oct 25, 2023
1 parent d94286c commit 98bd1de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nix/tools/release/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98bd1de

Please sign in to comment.