From 75fa0c89adc51eb1e7ea08710dec2ad1b7856ef9 Mon Sep 17 00:00:00 2001 From: Pavel Kuznetsov Date: Sat, 7 Nov 2026 10:51:03 +0200 Subject: [PATCH] ci: use shared pinned GitVersion action without duplicating installation --- .github/workflows/gitversion.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/gitversion.yml b/.github/workflows/gitversion.yml index a081b63..44b3e68 100644 --- a/.github/workflows/gitversion.yml +++ b/.github/workflows/gitversion.yml @@ -19,13 +19,7 @@ jobs: with: fetch-depth: 0 persist-credentials: false - - name: Install GitVersion - run: dotnet tool install GitVersion.Tool --tool-path "$RUNNER_TEMP/gitversion" --version 6.8.2 - - name: Calculate and validate version - shell: bash - run: | - set -euo pipefail - version="$("$RUNNER_TEMP/gitversion/dotnet-gitversion" /showvariable SemVer)" - test -n "$version" - echo "Calculated GitVersion SemVer: $version" - echo "### GitVersion: $version" >> "$GITHUB_STEP_SUMMARY" + - name: Calculate and validate version (shared platform) + uses: ./.github/actions/resolve-version + with: + variable: SemVer