File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1616 [string ] $GhTitlePattern = ' ' ,
1717 # Specific version - if passed, no discovery is performed and the version is set directly
1818 [string ] $Tag = ' ' ,
19+ # Tag that the dependency was before update - should be only passed if $Tag is set. Necessary for PostUpdateScript.
20+ [string ] $OriginalTag = ' ' ,
1921 # Optional post-update script to run after successful dependency update
2022 # The script receives the original and new version as arguments
2123 [string ] $PostUpdateScript = ' '
@@ -134,6 +136,8 @@ if (-not $isSubmodule) {
134136}
135137
136138if (" $Tag " -eq ' ' ) {
139+ $OriginalTag | Should - Be ' '
140+
137141 if ($isSubmodule ) {
138142 git submodule update -- init -- no- fetch -- single- branch $Path
139143 Push-Location $Path
@@ -250,11 +254,10 @@ if ("$Tag" -eq '') {
250254 }
251255
252256 $Tag = $latestTag
257+ } else {
258+ $OriginalTag | Should -Not - Be ' '
253259}
254260
255- $originalTagForPostUpdate = if ($originalTag ) { $originalTag } else { ' ' }
256- $newTagForPostUpdate = $Tag
257-
258261if ($isSubmodule ) {
259262 Write-Host " Updating submodule $Path to $Tag "
260263 Push-Location $Path
You can’t perform that action at this time.
0 commit comments