gitea actions ng33
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user