Apply suggestion from @Link-

Co-authored-by: Bassem Dghaidi <568794+Link-@users.noreply.github.com>
This commit is contained in:
Austen Stone
2025-10-22 07:39:45 -04:00
committed by GitHub
parent fea4f6b5c5
commit be1151df02
@@ -101,7 +101,7 @@ export function getUploadChunkTimeout(): number {
// This value can be changed with ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT variable.
// Defaults to 1000 as a safeguard for rate limiting.
export function getMaxArtifactListCount(): number {
const maxCountVar = process.env['ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT']
const maxCountVar = process.env['ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT'] || 1000
if (!maxCountVar) {
return 1000
}