内网源
This commit is contained in:
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
@@ -94257,7 +94257,7 @@ class OfficialBuilds extends base_distribution_1.default {
|
|||||||
return `https://nodejs.org/dist`;
|
return `https://nodejs.org/dist`;
|
||||||
}
|
}
|
||||||
getManifest() {
|
getManifest() {
|
||||||
core.debug('Getting manifest from actions/node-versions@main');
|
core.info('Getting manifest from actions/node-versions@main');
|
||||||
return this.getManifestFromRepo('actions', 'node-versions', this.nodeInfo.auth, 'main');
|
return this.getManifestFromRepo('actions', 'node-versions', this.nodeInfo.auth, 'main');
|
||||||
}
|
}
|
||||||
getManifestFromRepo(owner, repo, auth, branch = 'master') {
|
getManifestFromRepo(owner, repo, auth, branch = 'master') {
|
||||||
@@ -94339,7 +94339,7 @@ class OfficialBuilds extends base_distribution_1.default {
|
|||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
let info = null;
|
let info = null;
|
||||||
if (!manifest) {
|
if (!manifest) {
|
||||||
core.debug('No manifest cached');
|
core.info('No manifest cached');
|
||||||
manifest = yield this.getManifest();
|
manifest = yield this.getManifest();
|
||||||
}
|
}
|
||||||
const rel = yield tc.findFromManifest(versionSpec, stable, manifest, osArch);
|
const rel = yield tc.findFromManifest(versionSpec, stable, manifest, osArch);
|
||||||
|
@@ -190,7 +190,7 @@ export default class OfficialBuilds extends BaseDistribution {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private getManifest(): Promise<tc.IToolRelease[]> {
|
private getManifest(): Promise<tc.IToolRelease[]> {
|
||||||
core.debug('Getting manifest from actions/node-versions@main');
|
core.info('Getting manifest from actions/node-versions@main');
|
||||||
return this.getManifestFromRepo(
|
return this.getManifestFromRepo(
|
||||||
'actions',
|
'actions',
|
||||||
'node-versions',
|
'node-versions',
|
||||||
@@ -320,7 +320,7 @@ export default class OfficialBuilds extends BaseDistribution {
|
|||||||
): Promise<INodeVersionInfo | null> {
|
): Promise<INodeVersionInfo | null> {
|
||||||
let info: INodeVersionInfo | null = null;
|
let info: INodeVersionInfo | null = null;
|
||||||
if (!manifest) {
|
if (!manifest) {
|
||||||
core.debug('No manifest cached');
|
core.info('No manifest cached');
|
||||||
manifest = await this.getManifest();
|
manifest = await this.getManifest();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user