Compare commits

..

2 Commits

Author SHA1 Message Date
Torsten Brendgen
340b9c63d0 init 2.0.0 2026-04-11 22:51:14 +02:00
Torsten Brendgen
e0997eeb51 initial creation 2026-04-11 22:50:59 +02:00
2 changed files with 8 additions and 8 deletions

View File

@@ -34,7 +34,7 @@ jobs:
zip -r "/tmp/HailMaryGuildTools-${{ gitea.ref_name }}.zip" HailMaryGuildTools zip -r "/tmp/HailMaryGuildTools-${{ gitea.ref_name }}.zip" HailMaryGuildTools
ls -lh "/tmp/HailMaryGuildTools-${{ gitea.ref_name }}.zip" ls -lh "/tmp/HailMaryGuildTools-${{ gitea.ref_name }}.zip"
- name: Release anlegen oder vorhandene laden - name: Release anlegen oder laden
run: | run: |
set -e set -e
TAG="${{ gitea.ref_name }}" TAG="${{ gitea.ref_name }}"

View File

@@ -41,26 +41,26 @@ jobs:
TAG="v$VERSION" TAG="v$VERSION"
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
echo "TAG=$TAG" >> "$GITHUB_ENV"
echo "Gefundene Version: $VERSION" echo "Gefundene Version: $VERSION"
echo "Neues Tag wäre: $TAG" echo "Neues Tag wäre: $TAG"
echo "$TAG" > /tmp/release_tag.txt
- name: Tag nur erstellen, wenn noch nicht vorhanden - name: Tag nur erstellen, wenn noch nicht vorhanden
run: | run: |
set -e set -e
cd /tmp/repo cd /tmp/repo
git fetch --tags git fetch --tags
TAG=$(cat /tmp/release_tag.txt)
if git rev-parse "${TAG}" >/dev/null 2>&1; then if git rev-parse "$TAG" >/dev/null 2>&1; then
echo "Tag ${TAG} existiert bereits, nichts zu tun." echo "Tag $TAG existiert bereits, nichts zu tun."
exit 0 exit 0
fi fi
git config user.name "Gitea Actions" git config user.name "Gitea Actions"
git config user.email "actions@local" git config user.email "actions@local"
git tag "${TAG}" git tag "$TAG"
git push origin "${TAG}" git push origin "$TAG"