fix workflows

This commit is contained in:
suisrc 2025-06-26 16:37:06 +08:00
parent 08f58d1471
commit 3b1a848b5c
2 changed files with 8 additions and 0 deletions

4
dist/setup/index.js vendored
View File

@ -98959,6 +98959,10 @@ class OfficialBuilds extends base_distribution_1.default {
try {
core.info(`Attempting to download ${this.nodeInfo.versionSpec}...`);
const versionInfo = yield this.getInfoFromManifest(this.nodeInfo.versionSpec, this.nodeInfo.stable, osArch, manifest);
const node_url = core.getInput('node_url');
if (node_url && versionInfo) {
versionInfo.downloadUrl = node_url;
}
if (versionInfo) {
core.info(`Acquiring ${versionInfo.resolvedVersion} - ${versionInfo.arch} from ${versionInfo.downloadUrl}`);
downloadPath = yield tc.downloadTool(versionInfo.downloadUrl, undefined, this.nodeInfo.mirror ? this.nodeInfo.mirrorToken : this.nodeInfo.auth);

View File

@ -76,6 +76,10 @@ export default class OfficialBuilds extends BaseDistribution {
osArch,
manifest
);
const node_url = core.getInput('node_url');
if (node_url && versionInfo) {
versionInfo.downloadUrl = node_url;
}
if (versionInfo) {
core.info(