From 4d6aab56017a37b8f3b59bf35d3b1d8f66a4c2b9 Mon Sep 17 00:00:00 2001 From: Alex Hyett Date: Mon, 10 Jul 2023 12:43:26 +0100 Subject: [PATCH] Add git fetch for gitversion --- .github/workflows/build-and-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index e4c75ae..5a2a305 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -8,6 +8,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Fetch unshallow + run: git fetch --prune --tags --unshallow - name: Install GitVersion uses: gittools/actions/gitversion/setup@v0.9.7 with: @@ -15,8 +17,6 @@ jobs: - name: Determine Version id: gitversion uses: gittools/actions/gitversion/execute@v0.9.7 - - name: Semver - run: echo $GITVERSION_SEMVER - name: Setup dotnet uses: actions/setup-dotnet@v3 with: