From fc459b2366cbb3858acd411cd4eb299e64096f7b Mon Sep 17 00:00:00 2001 From: Brett Hewitson Date: Thu, 29 Dec 2022 15:14:29 +1000 Subject: [PATCH] pipeline file changes --- .../apply-semantic-versioning-to-assembyinfo-files.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.azure/pipelines/apply-semantic-versioning-to-assembyinfo-files.yml b/.azure/pipelines/apply-semantic-versioning-to-assembyinfo-files.yml index 10600c43..6c0e053d 100644 --- a/.azure/pipelines/apply-semantic-versioning-to-assembyinfo-files.yml +++ b/.azure/pipelines/apply-semantic-versioning-to-assembyinfo-files.yml @@ -24,12 +24,12 @@ steps: $exitFunction = $false $content | % { if ($_ -match 'exclude from semantic versioning') { - Write-Host " * Skipping $attribute due to exclude" + Write-Host " * Skipping $attribute due to exclude" $exitFunction = $true } if ($_ -match 'include semantic versioning' -and $_ -notmatch "include semantic versioning - $ApplicationName") { - Write-Host " * Skipping $attribute due to include not matching" + Write-Host " * Skipping $attribute due to include not matching" $exitFunction = $true } } @@ -46,14 +46,14 @@ steps: if ($_ -match $Pattern) { $versionReplaced = $true $_ = $_ -replace [regex]::Escape($Matches[0]),$versionAttribute - Write-Host " * Replaced $($Matches[0]) with $versionAttribute" + Write-Host " * Replaced $($Matches[0]) with $versionAttribute" } $_ } if (-not $versionReplaced) { $content += [Environment]::NewLine + $versionAttribute - Write-Host " * Added $versionAttribute to end of content" + Write-Host " * Added $versionAttribute to end of content" } return $content @@ -63,8 +63,6 @@ steps: return [string]::Join('.',($extractedBuildNumbers | select -First ($numberOfVersions))) } - $ErrorActionPreference = 'Stop' - if ($BuildNumber -match $Pattern -ne $true) { Write-Host "Could not extract a version from [$BuildNumber] using pattern [$Pattern]" exit 2