From 1a1d7dec7c70fbe391cf12d94910aa29a5d2d1ef Mon Sep 17 00:00:00 2001 From: Penry Date: Sun, 7 Jun 2026 20:29:44 +0200 Subject: [PATCH] Test --- .gitea/workflows/linux_arm64_docker.yaml | 38 ++---------------------- 1 file changed, 2 insertions(+), 36 deletions(-) diff --git a/.gitea/workflows/linux_arm64_docker.yaml b/.gitea/workflows/linux_arm64_docker.yaml index e6c7a9c..ce53378 100644 --- a/.gitea/workflows/linux_arm64_docker.yaml +++ b/.gitea/workflows/linux_arm64_docker.yaml @@ -28,42 +28,8 @@ jobs: - name: Build version shell: bash run: | - set -euo pipefail - - git fetch --force --tags origin - git fetch --force origin main:refs/remotes/origin/main - - LAST_TAG=$(git for-each-ref \ - --sort=-creatordate \ - --format='%(refname:strip=2)' \ - refs/tags/v* \ - | head -n 1) - - if [[ -z "${LAST_TAG:-}" ]]; then - echo "No tag found" - exit 1 - fi - - 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}" - - if [[ "$BASE_VERSION" == *-* ]]; then - VERSION="${BASE_VERSION}.${DISTANCE}" - else - VERSION="${BASE_VERSION}-nightly.${DISTANCE}" - 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: $DISTANCE" - echo "Final version: $VERSION" + COMMIT_COUNT=$(git rev-list $(git describe --tags --abbrev=0)..HEAD --count + echo "Commit Count: $COMMIT_COUNT" - name: Set .NET version variables shell: bash