mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-01 22:03:17 +08:00
Concurrency has a min of 1
This commit is contained in:
@@ -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