mirror of https://github.com/actions/toolkit
linter
parent
606ebdcf6d
commit
3a610e848c
|
@ -40,7 +40,7 @@ export function getGitHubWorkspaceDir(): string {
|
||||||
// Mimics behavior of azcopy: https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-optimize
|
// Mimics behavior of azcopy: https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-optimize
|
||||||
// If your machine has fewer than 5 CPUs, then the value of this variable is set to 32.
|
// If your machine has fewer than 5 CPUs, then the value of this variable is set to 32.
|
||||||
// Otherwise, the default value is equal to 16 multiplied by the number of CPUs. The maximum value of this variable is 300.
|
// Otherwise, the default value is equal to 16 multiplied by the number of CPUs. The maximum value of this variable is 300.
|
||||||
export function getConcurrency() {
|
export function getConcurrency(): number {
|
||||||
const numCPUs = os.cpus().length
|
const numCPUs = os.cpus().length
|
||||||
|
|
||||||
if (numCPUs <= 4) {
|
if (numCPUs <= 4) {
|
||||||
|
|
|
@ -37,7 +37,10 @@ export async function uploadArtifact(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const zipUploadStream = await createZipUploadStream(zipSpecification, options?.compressionLevel)
|
const zipUploadStream = await createZipUploadStream(
|
||||||
|
zipSpecification,
|
||||||
|
options?.compressionLevel
|
||||||
|
)
|
||||||
|
|
||||||
// get the IDs needed for the artifact creation
|
// get the IDs needed for the artifact creation
|
||||||
const backendIds = getBackendIdsFromToken()
|
const backendIds = getBackendIdsFromToken()
|
||||||
|
|
Loading…
Reference in New Issue