File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,14 @@ Write-Host "Current build $version"
12
12
[version ]$publishedVersion = Find-Module dbops - ErrorAction Stop | Select-Object - ExpandProperty Version
13
13
if ($version -le $publishedVersion ) {
14
14
# increase version and push back to git
15
- [ string ] $newVersion = [Version ]::new($publishedVersion.Major , $publishedVersion.Minor , ($publishedVersion.Build + 1 ))
15
+ $version = [Version ]::new($publishedVersion.Major , $publishedVersion.Minor , ($publishedVersion.Build + 1 ))
16
16
$content = Get-Content $Path
17
- $content | Foreach-Object { $_ -replace $regEx , " `$ 1'$newVersion '" } | Out-File $Path - Force - Encoding utf8
17
+ $content | Foreach-Object { $_ -replace $regEx , " `$ 1'$version '" } | Out-File $Path - Force - Encoding utf8
18
18
$newModuleFile = Invoke-Command - ScriptBlock ([scriptblock ]::Create((Get-Content $Path - Raw)))
19
19
Write-Host " New build $ ( $newModuleFile.ModuleVersion ) "
20
- git add $moduleFile
20
+ git add $Path
21
21
git commit - m " v$version "
22
22
}
23
23
git push origin HEAD:development
24
- git branch release/ $version
24
+ git branch " release/$version "
25
25
git push -- all origin
You can’t perform that action at this time.
0 commit comments