Skip to content

Commit 93e32a7

Browse files
authored
Merge pull request #11979 from mboersma/release-1.10-job-changes
🐛 Use release branch for v1.10 alpha and beta releases
2 parents 149ccb6 + 9eec17d commit 93e32a7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77
paths:
88
- 'CHANGELOG/*.md'
9-
9+
1010
permissions:
1111
contents: write # Allow to push a tag, create a release branch and publish a draft release.
1212

@@ -16,7 +16,7 @@ jobs:
1616
outputs:
1717
release_tag: ${{ steps.release-version.outputs.release_version }}
1818
steps:
19-
- name: Checkout code
19+
- name: Checkout code
2020
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
2121
with:
2222
fetch-depth: 0
@@ -43,7 +43,8 @@ jobs:
4343
done
4444
- name: Determine the release branch to use
4545
run: |
46-
if [[ $RELEASE_VERSION =~ beta ]] || [[ $RELEASE_VERSION =~ alpha ]]; then
46+
# Use the release branch for all v1.10 releases
47+
if [[ ! $RELEASE_VERSION =~ ^v1\.10 ]] && [[ $RELEASE_VERSION =~ beta ]] || [[ $RELEASE_VERSION =~ alpha ]]; then
4748
export RELEASE_BRANCH=main
4849
echo "RELEASE_BRANCH=$RELEASE_BRANCH" >> $GITHUB_ENV
4950
echo "This is a beta or alpha release, will use release branch $RELEASE_BRANCH"

0 commit comments

Comments
 (0)