Skip to content

Commit

Permalink
Merge pull request #45 from jannis-baum/issue/44-verify-release-on-main
Browse files Browse the repository at this point in the history
Verify release on main
  • Loading branch information
jannis-baum authored Nov 27, 2023
2 parents 3a67feb + 2846dd4 commit 76ee150
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 76ee150

Please sign in to comment.