Update azure-pipelines-servermanagers-build.yml

This commit is contained in:
Brett Hewitson 2024-12-16 17:53:24 +10:00 committed by GitHub
parent c5b38cb337
commit 8fd57d5fe8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,12 +53,17 @@ stages:
displayName: Tag Files
env:
DEPLOY_BUILDNUMBER: $(Build.BuildNumber)
DEPLOY_REQUESTEDFOREMAIL: $(Build.RequestedForEmail)
DEPLOY_REQUESTEDFOR: $(Build.RequestedFor)
inputs:
targetType: inline
script: |
$appVersion = $env:DEPLOY_BUILDNUMBER
$tag = $appVersion
git config user.email "$env:DEPLOY_REQUESTEDFOREMAIL"
git config user.name "$env:DEPLOY_REQUESTEDFOR"
Write-Host "Performing Git Tag Delete"
git tag -d $tag
git push origin :refs/tags/$tag