Skip to content

Commit

Permalink
Fix: Use array in single-item versions in versions.json
Browse files Browse the repository at this point in the history
  • Loading branch information
leojonathanoh committed Oct 21, 2023
1 parent 71819d5 commit 6f35a46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion generate/definitions/versions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"code-server": {
"versions": [
"4.18.0",
"4.17.1",
"4.16.1",
"4.15.0",
Expand All @@ -18,7 +19,9 @@
"versionsNewScript": "Invoke-WebRequest https://api.github.com/repos/coder/code-server/git/refs/tags | ConvertFrom-Json | % { $_.ref -replace 'refs/tags/v', ''} | ? { $_ -match '^\\d+\\.\\d+\\.\\d+$' } | Sort-Object { [version]$_ } -Descending | ? { [version]$_ -ge [version]'4.6' }"
},
"go": {
"versions": "1.20.10",
"versions": [
"1.20.10"
],
"versionsChangeScope": "minor",
"versionsNewScript": "Invoke-WebRequest https://api.github.com/repos/golang/go/git/refs/tags | ConvertFrom-Json | % { $_.ref -replace 'refs/tags/go', '' } | ? { $_ -match '^\\d+\\.\\d+\\.\\d+$' } | Sort-Object { [version]$_ } -Descending | ? { [version]$_ -gt [version]'1.20' -and [version]$_ -lt [version]'1.21' } # Alternatively, use: https://go.dev/dl/?mode=json&include=all"
}
Expand Down

0 comments on commit 6f35a46

Please sign in to comment.