Aktualisierung der release.yml für flexible Tag-Behandlung
All checks were successful
Release Plugin / release (push) Successful in 4s
All checks were successful
Release Plugin / release (push) Successful in 4s
This commit is contained in:
@@ -4,7 +4,7 @@ run-name: "Release | ${{ github.ref_name }}"
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
@@ -40,25 +40,27 @@ jobs:
|
||||
id: releaseinfo
|
||||
run: |
|
||||
TAG="${{ github.ref_name }}"
|
||||
VERSION="${TAG#v}"
|
||||
|
||||
case "$TAG" in
|
||||
*-unstable*)
|
||||
CHANNEL="unstable"
|
||||
DRAFT="false"
|
||||
PRERELEASE="true"
|
||||
;;
|
||||
*-testing*)
|
||||
if [[ "$TAG" =~ ^t ]]; then
|
||||
VERSION="${TAG#t}"
|
||||
TAG="v${VERSION}-testing"
|
||||
CHANNEL="testing"
|
||||
DRAFT="false"
|
||||
PRERELEASE="true"
|
||||
;;
|
||||
*)
|
||||
CHANNEL="stable"
|
||||
elif [[ "$TAG" =~ ^u ]]; then
|
||||
VERSION="${TAG#u}"
|
||||
TAG="v${VERSION}-unstable"
|
||||
CHANNEL="unstable"
|
||||
DRAFT="false"
|
||||
PRERELEASE="false"
|
||||
;;
|
||||
esac
|
||||
PRERELEASE="true"
|
||||
else
|
||||
# Falscheingaben als unstable behandeln
|
||||
VERSION="${TAG#v}"
|
||||
TAG="v${VERSION}-unstable"
|
||||
CHANNEL="unstable"
|
||||
DRAFT="false"
|
||||
PRERELEASE="true"
|
||||
fi
|
||||
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
echo "channel=$CHANNEL" >> $GITHUB_OUTPUT
|
||||
|
||||
Reference in New Issue
Block a user