mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-17 21:12:03 +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>"
|
release_name: "Release <RELEASE_VERSION>"
|
||||||
use_github_release_notes: true
|
use_github_release_notes: true
|
||||||
|
|
||||||
- name: Get PR labels
|
|
||||||
id: pr-labels
|
|
||||||
uses: joerick/pr-labels-action@v1.0.7
|
|
||||||
|
|
||||||
- name: Modify version scheme
|
- name: Modify version scheme
|
||||||
run: |
|
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 "Replacing prerelease version scheme with SNAPSHOT"
|
||||||
echo "VERSION=$(echo ${{ steps.release.outputs.tag_name }} | sed -E 's/-pre.*/-SNAPSHOT/')" >> $GITHUB_ENV
|
echo "VERSION=$(echo ${{ steps.release.outputs.tag_name }} | sed -E 's/-pre.*/-SNAPSHOT/')" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user