Skip to content

Commit

Permalink
Merge pull request #2863 from Multiverse/prerelease_snapshot
Browse files Browse the repository at this point in the history
Check if the tag name contains pre instead of checking PR labels.
  • Loading branch information
dumptruckman authored Feb 24, 2023
2 parents ff8002f + b64e487 commit 3279a6a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,9 @@ jobs:
release_name: "Release <RELEASE_VERSION>"
use_github_release_notes: true

- name: Get PR labels
id: pr-labels
uses: joerick/[email protected]

- 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
Expand Down

0 comments on commit 3279a6a

Please sign in to comment.