.gitea/workflows/linux_arm64_docker.yaml aktualisiert #57

Merged
Penry merged 1 commits from penry-patch-1 into main 2026-06-07 18:42:44 +02:00
Showing only changes of commit 78774abffd - Show all commits
+9 -5
View File
@@ -31,18 +31,20 @@ jobs:
set -euo pipefail
git fetch --force --tags origin
git fetch --force origin main
git fetch --force origin main:refs/remotes/origin/main
LAST_TAG=$(git log --first-parent --tags --simplify-by-decoration --pretty='%D' origin/main \
| grep -oE 'tag: v[^, ]+' \
LAST_TAG=$(git log --first-parent --decorate=short --simplify-by-decoration --oneline origin/main \
| grep -oE 'tag: v[^,)]+' \
| head -n 1 \
| sed 's/tag: //')
if [[ -z "${LAST_TAG:-}" ]]; then
LAST_TAG="v0.0.1-alpha"
echo "No release tag found"
exit 1
fi
DISTANCE=$(git rev-list --count --first-parent "${LAST_TAG}..origin/main")
LAST_COMMIT=$(git rev-list -n 1 "$LAST_TAG")
DISTANCE=$(git rev-list --count --first-parent "${LAST_COMMIT}..origin/main")
BASE_VERSION="${LAST_TAG#v}"
@@ -53,10 +55,12 @@ jobs:
fi
echo "LAST_TAG=$LAST_TAG" >> "$GITHUB_ENV"
echo "LAST_COMMIT=$LAST_COMMIT" >> "$GITHUB_ENV"
echo "DISTANCE=$DISTANCE" >> "$GITHUB_ENV"
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
echo "Last tag: $LAST_TAG"
echo "Last tag commit: $LAST_COMMIT"
echo "Distance to origin/main (first-parent): $DISTANCE"
echo "Final version: $VERSION"