From dfff813c54d017ca0567b2b2332d1245b78ab4fd Mon Sep 17 00:00:00 2001 From: Peter Bajurny Date: Thu, 22 Apr 2021 12:04:07 -0500 Subject: [PATCH] move gitversion setup --- PSModules/stages/build-module.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PSModules/stages/build-module.yml b/PSModules/stages/build-module.yml index 4c4c82d..665dcf7 100644 --- a/PSModules/stages/build-module.yml +++ b/PSModules/stages/build-module.yml @@ -7,6 +7,9 @@ stages: jobs: - job: Build steps: + - task: gitversion/setup@0 + inputs: + versionSpec: '5.x' # https://github.com/PoshCode/Azure-Pipelines/blob/master/Install-RequiredModule-step.yml - powershell: | # Apparently, Install-Script isn't good enough except on Windows? @@ -23,9 +26,6 @@ stages: "mode: Mainline" | Set-Content '$(Build.SourcesDirectory)/GitVersion.yml' } displayName: Create gitversion.yml if none exists - - task: gitversion/setup@0 - inputs: - versionSpec: '5.x' - task: gitversion/execute@0 - powershell: | gci env: