docs: clarify makerelease dry-run branch requirement

This commit is contained in:
2026-04-27 20:12:47 +02:00
parent b489272bc0
commit 37aa36d94f
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ Use --dry-run to show the computed release version without running Git actions.
Requirements:
- run from a clean Git working tree
- current branch must be dev
- current branch must be dev for real releases
- main branch must exist locally
EOF
}
@@ -74,7 +74,7 @@ fi
CURRENTBRANCH=$(git rev-parse --abbrev-ref HEAD)
ORIGBRANCH="${CURRENTBRANCH}"
if [ "${CURRENTBRANCH}" != "dev" ]; then
if [ "${is_dry_run}" = false ] && [ "${CURRENTBRANCH}" != "dev" ]; then
echo "You are not in dev branch!"
echo "Use dev branch to make a release!"
exit 1