Concurrency has a min of 1
This commit is contained in:
1 parent
f001ee669d
commit
11b17a3847
2 files changed
+9
-1
No files matched your search
@@ -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'
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user