We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49fcedd commit fe22ee6Copy full SHA for fe22ee6
dev-bin/release.sh
@@ -2,6 +2,14 @@
2
3
set -eu -o pipefail
4
5
+# Check that we're not on the main branch
6
+current_branch=$(git branch --show-current)
7
+if [ "$current_branch" = "main" ]; then
8
+ echo "Error: Releases should not be done directly on the main branch."
9
+ echo "Please create a release branch and run this script from there."
10
+ exit 1
11
+fi
12
+
13
phar='geoip2.phar'
14
15
changelog=$(cat CHANGELOG.md)
0 commit comments