diff --git a/.github/workflows/gitversion.yml b/.github/workflows/gitversion.yml index a081b63..7daf4e8 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: 4FusionLab/.github/.github/actions/resolve-version@ad9d60ba4aabc494b4f2c85d6c566a50ca423751 + with: + variable: SemVer