|
|
@ -166,7 +166,7 @@ function unique(value, index, self) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function getAvailableVersions() {
|
|
|
|
function getAvailableVersions() {
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
let http = new httpm.HttpClient('setup-java');
|
|
|
|
let http = new httpm.HttpClient('setup-go');
|
|
|
|
let contents = yield (yield http.get('https://api.github.com/repos/golang/go/git/refs/tags')).readBody();
|
|
|
|
let contents = yield (yield http.get('https://api.github.com/repos/golang/go/git/refs/tags')).readBody();
|
|
|
|
const matches = contents.match(/go\d+\.[\w\.]+/g) || [];
|
|
|
|
const matches = contents.match(/go\d+\.[\w\.]+/g) || [];
|
|
|
|
const versions = matches
|
|
|
|
const versions = matches
|
|
|
|