Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
prasenjeetnath authored Oct 18, 2023
1 parent ee054d5 commit 9d7a521
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,29 @@ jobs:
with:
fetch-depth: 0

- name: Setup Version
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '5.3.6'
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE

- name: Determine Version
uses: gittools/actions/gitversion/[email protected]
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/[email protected]
with:
Expand Down

0 comments on commit 9d7a521

Please sign in to comment.