mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +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\("".*""\)\]"
|
$pattern = "\[assembly: $attribute\("".*""\)\]"
|
||||||
$versionReplaced = $false
|
$versionReplaced = $false
|
||||||
|
|
||||||
|
$content = $content | % {
|
||||||
|
if ($_ -match $Pattern) {
|
||||||
|
$versionReplaced = $true
|
||||||
|
$_ = $_ -replace [regex]::Escape($Matches[0]),$versionAttribute
|
||||||
|
Write-Host " * Replaced $($Matches[0]) with $versionAttribute"
|
||||||
|
}
|
||||||
|
$_
|
||||||
|
}
|
||||||
|
|
||||||
return $content
|
return $content
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue