mirror of
https://github.com/actions/go-versions
synced 2024-11-24 20:22:40 +00:00
add minor fix (#81)
This commit is contained in:
parent
a42239e7a9
commit
0e4e5019c1
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ class GoBuilder {
|
||||||
$arch = ($this.Architecture -eq "x64") ? "amd64" : $this.Architecture
|
$arch = ($this.Architecture -eq "x64") ? "amd64" : $this.Architecture
|
||||||
$goPlatform = ($this.Platform -Match "win32") ? "windows" : $this.Platform
|
$goPlatform = ($this.Platform -Match "win32") ? "windows" : $this.Platform
|
||||||
$ArchiveType = ($this.Platform -Match "win32") ? "zip" : "tar.gz"
|
$ArchiveType = ($this.Platform -Match "win32") ? "zip" : "tar.gz"
|
||||||
If ($this.Version.Build -eq "0") {
|
If ($this.Version.Build -eq "0" -and $this.Version -lt "1.21.0") {
|
||||||
$goVersion = "go$($this.Version.ToString(2))"
|
$goVersion = "go$($this.Version.ToString(2))"
|
||||||
} else {
|
} else {
|
||||||
$goVersion = "go$($this.Version.ToString(3))"
|
$goVersion = "go$($this.Version.ToString(3))"
|
||||||
|
|
Loading…
Reference in a new issue