mirror of
https://github.com/actions/setup-node
synced 2025-04-18 22:23:11 +00:00
Merge branch 'main' into v-dmshib/action-to-node20
This commit is contained in:
commit
d534e90ed0
BIN
.licenses/npm/uuid-9.0.0.dep.yml
generated
Normal file
BIN
.licenses/npm/uuid-9.0.0.dep.yml
generated
Normal file
Binary file not shown.
@ -1,3 +1,4 @@
|
|||||||
|
import {v4 as uuidv4} from 'uuid';
|
||||||
import * as tc from '@actions/tool-cache';
|
import * as tc from '@actions/tool-cache';
|
||||||
import * as hc from '@actions/http-client';
|
import * as hc from '@actions/http-client';
|
||||||
import * as core from '@actions/core';
|
import * as core from '@actions/core';
|
||||||
@ -166,9 +167,8 @@ export default abstract class BaseDistribution {
|
|||||||
const initialUrl = this.getDistributionUrl();
|
const initialUrl = this.getDistributionUrl();
|
||||||
const osArch: string = this.translateArchToDistUrl(arch);
|
const osArch: string = this.translateArchToDistUrl(arch);
|
||||||
|
|
||||||
// Create temporary folder to download in to
|
// Create temporary folder to download to
|
||||||
const tempDownloadFolder: string =
|
const tempDownloadFolder = `temp_${uuidv4()}`;
|
||||||
'temp_' + Math.floor(Math.random() * 2000000000);
|
|
||||||
const tempDirectory = process.env['RUNNER_TEMP'] || '';
|
const tempDirectory = process.env['RUNNER_TEMP'] || '';
|
||||||
assert.ok(tempDirectory, 'Expected RUNNER_TEMP to be defined');
|
assert.ok(tempDirectory, 'Expected RUNNER_TEMP to be defined');
|
||||||
const tempDir: string = path.join(tempDirectory, tempDownloadFolder);
|
const tempDir: string = path.join(tempDirectory, tempDownloadFolder);
|
||||||
|
Loading…
Reference in New Issue
Block a user