From 07074e76a83cb70134a42a3c4215385923403082 Mon Sep 17 00:00:00 2001 From: Enno Gelhaus Date: Wed, 1 Oct 2025 14:40:55 +0200 Subject: [PATCH] Update build-pr.yml --- .github/workflows/build-pr.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index e5ca699b..4cbfe2b2 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -54,13 +54,12 @@ jobs: - name: Build run: pnpm run build - - name: Get Project Version from Git Tag + - name: Get Commit SHA (short) id: get_version run: | - # Use 'git describe' to find the closest tag, falling back to the commit SHA if no tag is found. - # --tags includes all tags, --always ensures it always outputs something. - VERSION=$(git describe --tags --always) - echo "Project version is $VERSION" + # Get the short 8-character commit SHA + VERSION=$(git rev-parse --short=8 HEAD) + echo "Commit SHA is $VERSION" echo "tag=$VERSION" >> $GITHUB_OUTPUT - name: SonarQube Analysis (Pull Request)