mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-25 03:55:27 +01:00
Check if the tag name contains pre instead of checking PR labels.
This commit is contained in:
parent
2af835f0c3
commit
b64e48769d
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user