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 f9b5d95 commit 417e7dfCopy full SHA for 417e7df
hack/create-release-pr.sh
@@ -8,10 +8,20 @@
8
# - merge the PR
9
# It will trigger the release workflow that would create release draft on github
10
11
-RELEASE_BRANCH="$(git rev-parse --abbrev-ref HEAD || true)"
12
set -eux
13
set -o pipefail
14
+
15
+CURRENT_BRANCH="$(git branch --show-current)"
16
+# CURRENT_BRANCH="release-0.14"
17
18
+if [[ ! "$CURRENT_BRANCH" == release-* ]]; then
19
+ echo "!! Please checkout branch 'release-X.Y' (currently in branch: '${CURRENT_BRANCH}')" >&2
20
+ exit 1
21
+fi
22
23
+RELEASE_BRANCH="${CURRENT_BRANCH}"
24
25
### look for latest on-branch tag
26
PREVIOUS_TAG=$(git describe --tags --abbrev=0 --match "*${RELEASE_BRANCH##release-}*" 2>/dev/null || true)
27
0 commit comments