Skip to content

Commit 3279a6a

Browse files
authored
Merge pull request #2863 from Multiverse/prerelease_snapshot
Check if the tag name contains pre instead of checking PR labels.
2 parents ff8002f + b64e487 commit 3279a6a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,9 @@ jobs:
3737
release_name: "Release <RELEASE_VERSION>"
3838
use_github_release_notes: true
3939

40-
- name: Get PR labels
41-
id: pr-labels
42-
uses: joerick/[email protected]
43-
4440
- name: Modify version scheme
4541
run: |
46-
if [[ "${{ steps.pr-labels.outputs.labels }}" == *"prerelease"* ]]; then
42+
if [[ "${{ steps.release.outputs.tag_name }}" == *"pre"* ]]; then
4743
echo "Replacing prerelease version scheme with SNAPSHOT"
4844
echo "VERSION=$(echo ${{ steps.release.outputs.tag_name }} | sed -E 's/-pre.*/-SNAPSHOT/')" >> $GITHUB_ENV
4945
else

0 commit comments

Comments
 (0)