From 9d7a521775a8cbef23128b988a23b9486b736c3c Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Wed, 18 Oct 2023 14:49:58 +0530 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0d159f4..6a8b8d2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,6 +24,29 @@ jobs: with: fetch-depth: 0 + - name: Setup Version + uses: gittools/actions/gitversion/setup@v0.10.2 + with: + versionSpec: '5.3.6' + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE + + - name: Determine Version + uses: gittools/actions/gitversion/execute@v0.10.2 + with: + useConfigFile: true + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE + + - name: get SemVer + id: gitversion + run: | + echo "SemVer: v$($env:GitVersion_SemVer)" + Write-Host "::set-output name=semver::v$($env:GitVersion_SemVer)" + $fileName = "dummy-v$($env:GitVersion_SemVer)" + echo "SemVerMMP: v$($env:GitVersion_MajorMinorPatch)" + Write-Host "Filename: '$fileName'" + - name: Setup msbuild uses: microsoft/setup-msbuild@v1.1 with: