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:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
@@ -40,26 +40,28 @@ jobs:
|
|||||||
id: releaseinfo
|
id: releaseinfo
|
||||||
run: |
|
run: |
|
||||||
TAG="${{ github.ref_name }}"
|
TAG="${{ github.ref_name }}"
|
||||||
VERSION="${TAG#v}"
|
|
||||||
|
|
||||||
case "$TAG" in
|
if [[ "$TAG" =~ ^t ]]; then
|
||||||
*-unstable*)
|
VERSION="${TAG#t}"
|
||||||
CHANNEL="unstable"
|
TAG="v${VERSION}-testing"
|
||||||
DRAFT="false"
|
CHANNEL="testing"
|
||||||
PRERELEASE="true"
|
DRAFT="false"
|
||||||
;;
|
PRERELEASE="true"
|
||||||
*-testing*)
|
elif [[ "$TAG" =~ ^u ]]; then
|
||||||
CHANNEL="testing"
|
VERSION="${TAG#u}"
|
||||||
DRAFT="false"
|
TAG="v${VERSION}-unstable"
|
||||||
PRERELEASE="true"
|
CHANNEL="unstable"
|
||||||
;;
|
DRAFT="false"
|
||||||
*)
|
PRERELEASE="true"
|
||||||
CHANNEL="stable"
|
else
|
||||||
DRAFT="false"
|
# Falscheingaben als unstable behandeln
|
||||||
PRERELEASE="false"
|
VERSION="${TAG#v}"
|
||||||
;;
|
TAG="v${VERSION}-unstable"
|
||||||
esac
|
CHANNEL="unstable"
|
||||||
|
DRAFT="false"
|
||||||
|
PRERELEASE="true"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
echo "channel=$CHANNEL" >> $GITHUB_OUTPUT
|
echo "channel=$CHANNEL" >> $GITHUB_OUTPUT
|
||||||
echo "draft=$DRAFT" >> $GITHUB_OUTPUT
|
echo "draft=$DRAFT" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
Reference in New Issue
Block a user