3
0

gitea actions ng33

This commit is contained in:
Michael Otto
2026-03-18 07:39:06 +01:00
parent 1020929511
commit 96fedd70ab

View File

@@ -227,7 +227,7 @@ jobs:
{
echo "---"
echo "Version $VERSION"
echo "Version $VERSION:"
cat "$FILE"
} > "$TMP_FILE"
@@ -250,10 +250,20 @@ jobs:
git config user.name "release-bot"
git config user.email "ci@example.local"
if git rev-parse "v$VERSION" >/dev/null 2>&1; then
echo "Lösche alten lokalen Tag v$VERSION"
git tag -d "v$VERSION"
echo "Lösche alten Remote-Tag v$VERSION"
git -c http.extraheader="AUTHORIZATION: bearer $RELEASE_TOKEN" \
push origin :refs/tags/"v$VERSION"
fi
git add metadata.txt changelog.txt
git commit -m "Release $VERSION"
git -c http.extraheader="AUTHORIZATION: bearer $RELEASE_TOKEN" push origin HEAD:"$CHANNEL"
env:
CHANNEL: ${{ steps.daten.outputs.channel }}
VERSION: ${{ steps.daten.outputs.version }}