mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
pipeline file changes
This commit is contained in:
parent
c88feda2bf
commit
6ef80eb4f7
1 changed files with 9 additions and 0 deletions
|
|
@ -49,6 +49,15 @@ steps:
|
|||
$pattern = "\[assembly: $attribute\("".*""\)\]"
|
||||
$versionReplaced = $false
|
||||
|
||||
$content = $content | % {
|
||||
if ($_ -match $Pattern) {
|
||||
$versionReplaced = $true
|
||||
$_ = $_ -replace [regex]::Escape($Matches[0]),$versionAttribute
|
||||
Write-Host " * Replaced $($Matches[0]) with $versionAttribute"
|
||||
}
|
||||
$_
|
||||
}
|
||||
|
||||
return $content
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue