From f63b6793491fa7aca5a909e6e31397a7a16d04cd Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Wed, 6 Oct 2021 13:13:36 +0200 Subject: [PATCH] Restrict release to stable branch --- scripts/commit-release.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/commit-release.sh b/scripts/commit-release.sh index 979ac00b..38024719 100755 --- a/scripts/commit-release.sh +++ b/scripts/commit-release.sh @@ -1,12 +1,12 @@ #!/bin/sh CURRENT_BRANCH=`git branch --show-current` -if [[ $CURRENT_BRANCH != "master" ]]; then - echo "Not on master branch" +if [[ $CURRENT_BRANCH != "stable" ]]; then + echo "Not on stable branch" exit fi VERSION=`ci/version-number.sh` DATE=`date "+%Y-%m-%d"` CHANGELOG_GLOB="Passepartout/App/*/CHANGELOG.md" -sed -i '' -E "s/^.*Beta.*$/## $VERSION ($DATE)/g" $CHANGELOG_GLOB +sed -i '' -E "s/^.*Beta.*$/## $VERSION ($DATE)/" $CHANGELOG_GLOB git commit -am "Release" && git tag -as "v$VERSION"