Compare commits
2 Commits
main
...
340b9c63d0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
340b9c63d0 | ||
|
|
e0997eeb51 |
@@ -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 }}"
|
||||||
@@ -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"
|
||||||
Reference in New Issue
Block a user