Skip to content

Commit 636b4f7

Browse files
authored
Merge pull request #22 from umn-microsoft-automation/fix-gitversion
Move gitversion setup task because Install-RequiredModules because Install-RequiredModules was causing the gitversion setup task to fail
2 parents 6fcafbb + dfff813 commit 636b4f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PSModules/stages/build-module.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ stages:
77
jobs:
88
- job: Build
99
steps:
10+
- task: gitversion/setup@0
11+
inputs:
12+
versionSpec: '5.x'
1013
# https://github.com/PoshCode/Azure-Pipelines/blob/master/Install-RequiredModule-step.yml
1114
- powershell: |
1215
# Apparently, Install-Script isn't good enough except on Windows?
@@ -23,9 +26,6 @@ stages:
2326
"mode: Mainline" | Set-Content '$(Build.SourcesDirectory)/GitVersion.yml'
2427
}
2528
displayName: Create gitversion.yml if none exists
26-
- task: gitversion/setup@0
27-
inputs:
28-
versionSpec: '5.x'
2929
- task: gitversion/execute@0
3030
- powershell: |
3131
gci env:

0 commit comments

Comments
 (0)