Skip to content

Commit 25900be

Browse files
Add --stable support to create_release_branch.sh
PiperOrigin-RevId: 603725899
1 parent 593bed2 commit 25900be

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tools/release/create_release_branch.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/bash
22

33
# Script to create a release branch and associated working 'in progress' branch
4-
# TODO: add support for creating a 'stable' branch
4+
#
5+
# Usage: bash tools/release/create_release_branch.sh [--stable]
56

67
set -e
78

@@ -16,7 +17,11 @@ git checkout main
1617
git pull
1718

1819
DATE=$(date -u "+%Y_%m_%d")
19-
RELEASE_BRANCH="axt_${DATE}_release_branch"
20+
if [[ $1 == "--stable" ]]; then
21+
RELEASE_BRANCH="axt_${DATE}_stable_release_branch"
22+
else
23+
RELEASE_BRANCH="axt_${DATE}_release_branch"
24+
fi
2025

2126
echo "Creating $RELEASE_BRANCH"
2227
git checkout -b $RELEASE_BRANCH

0 commit comments

Comments
 (0)