mirror of
https://github.com/actions/setup-node.git
synced 2026-05-23 21:01:54 +00:00
Only use mirrorToken in getManifest if it's provided
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
This commit is contained in:
parent
670825a89d
commit
34224293fd
1 changed files with 6 additions and 2 deletions
|
|
@ -84,7 +84,9 @@ export default class OfficialBuilds extends BaseDistribution {
|
|||
downloadPath = await tc.downloadTool(
|
||||
versionInfo.downloadUrl,
|
||||
undefined,
|
||||
this.nodeInfo.mirror ? this.nodeInfo.mirrorToken : this.nodeInfo.auth
|
||||
this.nodeInfo.mirror && this.nodeInfo.mirrorToken
|
||||
? this.nodeInfo.mirrorToken
|
||||
: this.nodeInfo.auth
|
||||
);
|
||||
|
||||
if (downloadPath) {
|
||||
|
|
@ -188,7 +190,9 @@ export default class OfficialBuilds extends BaseDistribution {
|
|||
return tc.getManifestFromRepo(
|
||||
'actions',
|
||||
'node-versions',
|
||||
this.nodeInfo.mirror ? this.nodeInfo.mirrorToken : this.nodeInfo.auth,
|
||||
this.nodeInfo.mirror && this.nodeInfo.mirrorToken
|
||||
? this.nodeInfo.mirrorToken
|
||||
: this.nodeInfo.auth,
|
||||
'main'
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue