switch from master to main branch

This commit is contained in:
Maxim Lobanov 2020-07-15 08:05:23 +03:00
parent 1616116e1b
commit 2a19222a1d
2 changed files with 7 additions and 2 deletions

2
dist/index.js vendored
View file

@ -5034,7 +5034,7 @@ exports.extractGoArchive = extractGoArchive;
function getInfoFromManifest(versionSpec, stable, auth) { function getInfoFromManifest(versionSpec, stable, auth) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
let info = null; 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}...`); core.info(`matching ${versionSpec}...`);
const rel = yield tc.findFromManifest(versionSpec, stable, releases); const rel = yield tc.findFromManifest(versionSpec, stable, releases);
if (rel && rel.files.length > 0) { if (rel && rel.files.length > 0) {

View file

@ -140,7 +140,12 @@ export async function getInfoFromManifest(
auth: string | undefined auth: string | undefined
): Promise<IGoVersionInfo | null> { ): Promise<IGoVersionInfo | null> {
let info: IGoVersionInfo | null = null; 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}...`); core.info(`matching ${versionSpec}...`);
const rel = await tc.findFromManifest(versionSpec, stable, releases); const rel = await tc.findFromManifest(versionSpec, stable, releases);