Skip to content

Commit

Permalink
check if release series branch already exist
Browse files Browse the repository at this point in the history
  • Loading branch information
XinRanZhAWS committed Apr 9, 2024
1 parent 5334096 commit 8bbe6b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pre_release_prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
- name: Create branches
run: |
if git ls-remote --heads origin release/${MAJOR_MINOR}.x; then
git fetch origin release/${MAJOR_MINOR}.x
echo "Branch release/${MAJOR_MINOR}.x already exists, checking out."
git checkout "release/${MAJOR_MINOR}.x"
else
Expand Down

0 comments on commit 8bbe6b1

Please sign in to comment.