mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-08 01:08:13 +01:00
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:
commit
3279a6a38d
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