Merge pull request #2863 from Multiverse/prerelease_snapshot

Check if the tag name contains pre instead of checking PR labels.
This commit is contained in:
Jeremy Wood 2023-02-24 11:34:18 -05:00 committed by GitHub
commit 3279a6a38d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,13 +37,9 @@ jobs:
release_name: "Release <RELEASE_VERSION>"
use_github_release_notes: true
- name: Get PR labels
id: pr-labels
uses: joerick/pr-labels-action@v1.0.7
- name: Modify version scheme
run: |
if [[ "${{ steps.pr-labels.outputs.labels }}" == *"prerelease"* ]]; then
if [[ "${{ steps.release.outputs.tag_name }}" == *"pre"* ]]; then
echo "Replacing prerelease version scheme with SNAPSHOT"
echo "VERSION=$(echo ${{ steps.release.outputs.tag_name }} | sed -E 's/-pre.*/-SNAPSHOT/')" >> $GITHUB_ENV
else