Skip to content

Commit ec055f6

Browse files
committed
Add help document to updateVersion.ps1
1 parent 53a18ad commit ec055f6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tools/updateVersion.ps1

+7-2
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,10 @@ $f = $f -replace '^(?<prefix>\s+<ModuleVersion>)(.+)(?<suffix></ModuleVersion>)$
2020
$f | Set-Content -Path $Path
2121
git add $Path
2222

23-
git commit --edit --message v${Version}: $Changes"
24-
"
23+
$Path = "docs/Cmdlets/PSScriptAnalyzer.md"
24+
$f = Get-Content -Path $Path
25+
$f = $f -replace '^(?<prefix>Help Version: )(.+)$', "`${prefix}${Version}"
26+
$f | Set-Content -Path $Path
27+
git add $Path
28+
29+
git commit --edit --message "v${Version}: $Changes"

0 commit comments

Comments
 (0)