gitea actions ng33
This commit is contained in:
@@ -227,7 +227,7 @@ jobs:
|
|||||||
|
|
||||||
{
|
{
|
||||||
echo "---"
|
echo "---"
|
||||||
echo "Version $VERSION"
|
echo "Version $VERSION:"
|
||||||
cat "$FILE"
|
cat "$FILE"
|
||||||
} > "$TMP_FILE"
|
} > "$TMP_FILE"
|
||||||
|
|
||||||
@@ -250,10 +250,20 @@ jobs:
|
|||||||
git config user.name "release-bot"
|
git config user.name "release-bot"
|
||||||
git config user.email "ci@example.local"
|
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 add metadata.txt changelog.txt
|
||||||
git commit -m "Release $VERSION"
|
git commit -m "Release $VERSION"
|
||||||
|
|
||||||
git -c http.extraheader="AUTHORIZATION: bearer $RELEASE_TOKEN" push origin HEAD:"$CHANNEL"
|
git -c http.extraheader="AUTHORIZATION: bearer $RELEASE_TOKEN" push origin HEAD:"$CHANNEL"
|
||||||
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CHANNEL: ${{ steps.daten.outputs.channel }}
|
CHANNEL: ${{ steps.daten.outputs.channel }}
|
||||||
VERSION: ${{ steps.daten.outputs.version }}
|
VERSION: ${{ steps.daten.outputs.version }}
|
||||||
|
|||||||
Reference in New Issue
Block a user