Anpassung der Tag-Verarbeitung für korrekte Release-Namen
All checks were successful
Release Plugin / release (push) Successful in 5s
All checks were successful
Release Plugin / release (push) Successful in 5s
This commit is contained in:
@@ -41,22 +41,24 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
TAG="${{ github.ref_name }}"
|
TAG="${{ github.ref_name }}"
|
||||||
|
|
||||||
if [[ "$TAG" =~ ^t ]]; then
|
if [[ "$TAG" =~ ^v ]]; then
|
||||||
|
VERSION="${TAG#v}"
|
||||||
|
CHANNEL="stable"
|
||||||
|
DRAFT="false"
|
||||||
|
PRERELEASE="false"
|
||||||
|
elif [[ "$TAG" =~ ^t ]]; then
|
||||||
VERSION="${TAG#t}"
|
VERSION="${TAG#t}"
|
||||||
TAG="v${VERSION}-testing"
|
|
||||||
CHANNEL="testing"
|
CHANNEL="testing"
|
||||||
DRAFT="false"
|
DRAFT="false"
|
||||||
PRERELEASE="true"
|
PRERELEASE="true"
|
||||||
elif [[ "$TAG" =~ ^u ]]; then
|
elif [[ "$TAG" =~ ^u ]]; then
|
||||||
VERSION="${TAG#u}"
|
VERSION="${TAG#u}"
|
||||||
TAG="v${VERSION}-unstable"
|
|
||||||
CHANNEL="unstable"
|
CHANNEL="unstable"
|
||||||
DRAFT="false"
|
DRAFT="false"
|
||||||
PRERELEASE="true"
|
PRERELEASE="true"
|
||||||
else
|
else
|
||||||
# Falscheingaben als unstable behandeln
|
# Fallback für andere Prefixe, z.B. x26.3.1 -> 26.3.1-unstable
|
||||||
VERSION="${TAG#v}"
|
VERSION="${TAG#?}"
|
||||||
TAG="v${VERSION}-unstable"
|
|
||||||
CHANNEL="unstable"
|
CHANNEL="unstable"
|
||||||
DRAFT="false"
|
DRAFT="false"
|
||||||
PRERELEASE="true"
|
PRERELEASE="true"
|
||||||
|
|||||||
Reference in New Issue
Block a user