chore: extract workflow scripts to individual files

This commit is contained in:
Stevan Freeborn
2026-03-30 16:00:07 -05:00
parent 1d14bd2261
commit ef08ca729b
3 changed files with 77 additions and 69 deletions
+15
View File
@@ -0,0 +1,15 @@
param(
[Parameter(Mandatory=$true)]
[string]$Version,
[string]$CsprojPath = "src/StevanFreeborn.Results/StevanFreeborn.Results.csproj"
)
$content = Get-Content $CsprojPath -Raw
if ($content -match "<Version>.*?</Version>") {
$content = $content -replace "<Version>.*?</Version>", "<Version>$Version</Version>"
} elseif ($content -match "<PropertyGroup>") {
$content = $content -replace "<PropertyGroup>", "<PropertyGroup>`n <Version>$Version</Version>"
}
Set-Content -Path $CsprojPath -Value $content