Concurrency has a min of 1

This commit is contained in:
Yang Cao committed 2025-01-08 18:14:04 +00:00
1 parent f001ee669d
commit 11b17a3847
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@ export function getConcurrency(): number {
const concurrencyOverride = process.env['ACTIONS_UPLOAD_CONCURRENCY']
if (concurrencyOverride) {
const concurrency = parseInt(concurrencyOverride)
if (isNaN(concurrency)) {
if (isNaN(concurrency) || concurrency < 1) {
throw new Error(
'Invalid value set for ACTIONS_UPLOAD_CONCURRENCY env variable'
)