config: update version regex to support Go's initial minor releases

Go doesn't _really_ follow semver here: the initial release of a new
minor series does not end with .0, which means there's no Go 1.16.0,
it's actually Go 1.16.

This is me trying to fix actions/setup-go#105, not sure if this is
correct.
This commit is contained in:
francisco souza 2021-02-16 23:21:13 -05:00
parent aa3776fc05
commit d244fd4e70

View file

@ -1,7 +1,7 @@
{
"regex": "go-\\d+\\.\\d+\\.\\d+-(\\w+)-(x\\d+)",
"regex": "go-\\d+\\.\\d+(?:\\.\\d+)-(\\w+)-(x\\d+)",
"groups": {
"arch": 2,
"platform": 1
}
}
}