Ermittlung Kanal angepasst
All checks were successful
Release Plugin / release (push) Successful in 4s

This commit is contained in:
Michael Otto
2026-03-13 10:39:55 +01:00
parent 524c26e64e
commit dd2f7287c5

View File

@@ -40,48 +40,31 @@ jobs:
id: releaseinfo
run: |
TAG="${{ github.ref_name }}"
VERSION="${TAG#v}"
case "$TAG" in
*-unstable*)
VERSION="${TAG%-unstable}"
VERSION="${VERSION#v}"
CHANNEL="unstable"
DRAFT="false"
PRERELEASE="true"
;;
*-testing*)
VERSION="${TAG%-testing}"
VERSION="${VERSION#v}"
CHANNEL="testing"
DRAFT="false"
PRERELEASE="true"
;;
v*)
VERSION="${TAG#v}"
CHANNEL="stable"
DRAFT="false"
PRERELEASE="false"
;;
t*)
VERSION="${TAG#t}"
CHANNEL="testing"
DRAFT="false"
PRERELEASE="true"
;;
u*)
VERSION="${TAG#u}"
*-*)
CHANNEL="unstable"
DRAFT="false"
PRERELEASE="true"
;;
*)
VERSION="${TAG#?}"
CHANNEL="unstable"
CHANNEL="stable"
DRAFT="false"
PRERELEASE="true"
PRERELEASE="false"
;;
esac
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "channel=$CHANNEL" >> $GITHUB_OUTPUT
echo "draft=$DRAFT" >> $GITHUB_OUTPUT