Skip to content

Commit

Permalink
feat(#44): check that release happens only on main
Browse files Browse the repository at this point in the history
  • Loading branch information
jannis-baum committed Nov 27, 2023
1 parent 3a67feb commit 2846dd4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash

if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then
echo "Releases should only be made from branch main"
exit 1
fi

if [ "$1" != "minor" -a "$1" != "major" ]; then
echo "Specify increment minor|major."
exit 1
Expand Down

0 comments on commit 2846dd4

Please sign in to comment.