File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ if (-not (Test-Path $Path ))
20
20
throw " Dependency $Path doesn't exit" ;
21
21
}
22
22
23
- # If it's a directory, we consider it a submodule dependendency. Otherwise, it must a properties-style file
23
+ # If it's a directory, we consider it a submodule dependendency. Otherwise, it must a properties-style file or a script.
24
24
$isSubmodule = (Test-Path $Path - PathType Container)
25
25
26
26
if (-not $isSubmodule )
@@ -104,7 +104,8 @@ if ("$Tag" -eq "")
104
104
$tags = $tags | ForEach-Object { ($_ -split " \s+" )[1 ] -replace ' ^refs/tags/' , ' ' }
105
105
106
106
$headRef = ($ (git ls- remote $url HEAD) -split " \s+" )[0 ]
107
- if (" $headRef " -eq ' ' ) {
107
+ if (" $headRef " -eq ' ' )
108
+ {
108
109
throw " Couldn't determine repository head (no ref returned by ls-remote HEAD"
109
110
}
110
111
$mainBranch = (git ls- remote -- heads $url | Where-Object { $_.StartsWith ($headRef ) }) -replace ' .*\srefs/heads/' , ' '
@@ -139,7 +140,8 @@ if ("$Tag" -eq "")
139
140
Write-Host " ::set-output name=url::$url "
140
141
Write-Host " ::set-output name=mainBranch::$mainBranch "
141
142
142
- if (" $originalTag " -eq " $latestTag " ) {
143
+ if (" $originalTag " -eq " $latestTag " )
144
+ {
143
145
return
144
146
}
145
147
$Tag = $latestTag
You can’t perform that action at this time.
0 commit comments