From b64e48769de7d7b66133a3adf5e7ca0a5fcc46c1 Mon Sep 17 00:00:00 2001 From: Jeremy Wood Date: Fri, 24 Feb 2023 11:29:28 -0500 Subject: [PATCH] Check if the tag name contains pre instead of checking PR labels. --- .github/workflows/release.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ec433708d..498d42ec9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,13 +37,9 @@ jobs: release_name: "Release " 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