Skip to content

Commit 830b8fd

Browse files
committed
Support release candidates as pre-releases
1 parent ec1a685 commit 830b8fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
run: |
4949
echo RELEASE_VERSION=${{ inputs.version }} >> $GITHUB_ENV
5050
echo RELEASE_VERSION_WITHOUT_SUFFIX=$(echo ${{ inputs.version }} | awk -F- '{print $1}') >> $GITHUB_ENV
51-
if [[ "${{ inputs.version }}" =~ (alpha|beta)[0-9]+$ ]]; then
51+
if [[ "${{ inputs.version }}" =~ (alpha|beta|rc)[0-9]+$ ]]; then
5252
echo NEXT_VERSION=$(echo ${{ inputs.version }} | awk -F- '{print $1}') >> $GITHUB_ENV
5353
else
5454
echo NEXT_VERSION=$(echo ${{ inputs.version }} | awk -F. -v OFS=. '{$NF += 1 ; print}') >> $GITHUB_ENV
@@ -112,7 +112,7 @@ jobs:
112112
113113
- name: "Create draft release with generated changelog"
114114
run: |
115-
if [[ "${{ inputs.version }}" =~ (alpha|beta) ]]; then
115+
if [[ "${{ inputs.version }}" =~ (alpha|beta|rc) ]]; then
116116
PRERELEASE="--prerelease --latest=false"
117117
fi
118118
echo "RELEASE_URL=$(\

0 commit comments

Comments
 (0)