From 2a19222a1d4b1139482cadf79fc07b0a41c699e7 Mon Sep 17 00:00:00 2001 From: Maxim Lobanov Date: Wed, 15 Jul 2020 08:05:23 +0300 Subject: [PATCH] switch from master to main branch --- dist/index.js | 2 +- src/installer.ts | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 2689cf3..807fbb1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5034,7 +5034,7 @@ exports.extractGoArchive = extractGoArchive; function getInfoFromManifest(versionSpec, stable, auth) { return __awaiter(this, void 0, void 0, function* () { let info = null; - const releases = yield tc.getManifestFromRepo('actions', 'go-versions', auth); + const releases = yield tc.getManifestFromRepo('actions', 'go-versions', auth, "main"); core.info(`matching ${versionSpec}...`); const rel = yield tc.findFromManifest(versionSpec, stable, releases); if (rel && rel.files.length > 0) { diff --git a/src/installer.ts b/src/installer.ts index 08758a4..0e0d5d3 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -140,7 +140,12 @@ export async function getInfoFromManifest( auth: string | undefined ): Promise { let info: IGoVersionInfo | null = null; - const releases = await tc.getManifestFromRepo('actions', 'go-versions', auth); + const releases = await tc.getManifestFromRepo( + 'actions', + 'go-versions', + auth, + 'main' + ); core.info(`matching ${versionSpec}...`); const rel = await tc.findFromManifest(versionSpec, stable, releases);