From 52f52e5b174672483fbfc9ea8268657f431cb4e0 Mon Sep 17 00:00:00 2001 From: James Friel Date: Mon, 3 Feb 2025 11:13:16 +0000 Subject: [PATCH] fix checkout --- .github/workflows/dotnet-core.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dotnet-core.yml b/.github/workflows/dotnet-core.yml index 2bd3d6d..74ac8f2 100644 --- a/.github/workflows/dotnet-core.yml +++ b/.github/workflows/dotnet-core.yml @@ -19,14 +19,6 @@ jobs: repository: HicServices/RDMP ref: develop path: RDMP - - name: Fetch RDMP latest tag - run: | - cd RDMP - git fetch --unshallow --tags - $LATEST_TAG = git rev-list --tags --max-count=1 |git describe --tags - git checkout $LATEST_TAG - echo $LATEST_TAG - cd .. - uses: actions/setup-dotnet@v4 with: dotnet-version: 8.0.x @@ -36,6 +28,12 @@ jobs: run: | perl getversions.pl perl getversions.pl >> %GITHUB_OUTPUT% + - name: Fetch RDMP latest tag + run: | + cd RDMP + git fetch --unshallow --tags + git checkout steps.version.outputs.rdmpversion + cd .. - name: Install MS SQL 2019 uses: crazy-max/ghaction-chocolatey@v3 with: