Remove dependency on uuid package (#1824)

This commit is contained in:
Josh Gross
2024-10-02 12:28:06 -04:00
committed by GitHub
parent 6dd369c0e6
commit 78af634e7e
10 changed files with 29 additions and 135 deletions

View File

@@ -6,7 +6,6 @@ import * as fs from 'fs'
import * as path from 'path'
import * as semver from 'semver'
import * as util from 'util'
import {v4 as uuidV4} from 'uuid'
import {
CacheFilename,
CompressionMethod,
@@ -34,7 +33,7 @@ export async function createTempDirectory(): Promise<string> {
tempDirectory = path.join(baseLocation, 'actions', 'temp')
}
const dest = path.join(tempDirectory, uuidV4())
const dest = path.join(tempDirectory, crypto.randomUUID())
await io.mkdirP(dest)
return dest
}