File tree 3 files changed +12
-6
lines changed
3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -225,6 +225,8 @@ async function run() {
225
225
}
226
226
}
227
227
228
+ // If the contents were parsed into an array and the first element was set as default "**",
229
+ // then upload the entire directory
228
230
if ( contents . length === 1 && contents [ 0 ] === "**" ) {
229
231
tl . debug ( "Upload a directory to a remote machine" ) ;
230
232
@@ -279,8 +281,8 @@ async function run() {
279
281
280
282
// Upload files to remote machine
281
283
const q = new Queue ( {
282
- concurrent : 5 ,
283
- delay : 0 ,
284
+ concurrent : process . env [ "CONCURRENT_UPLOADS" ] ? parseInt ( process . env [ "CONCURRENT_UPLOADS" ] ) : 5 ,
285
+ delay : process . env [ "DELAY_BETWEEN_UPLOADS" ] ? parseInt ( process . env [ "DELAY_BETWEEN_UPLOADS" ] ) : 0 ,
284
286
throwOnError : false
285
287
} ) ;
286
288
Original file line number Diff line number Diff line change @@ -225,6 +225,8 @@ async function run() {
225
225
}
226
226
}
227
227
228
+ // If the contents were parsed into an array and the first element was set as default "**",
229
+ // then upload the entire directory
228
230
if ( contents . length === 1 && contents [ 0 ] === "**" ) {
229
231
tl . debug ( "Upload a directory to a remote machine" ) ;
230
232
@@ -279,8 +281,8 @@ async function run() {
279
281
280
282
// Upload files to remote machine
281
283
const q = new Queue ( {
282
- concurrent : 5 ,
283
- delay : 0 ,
284
+ concurrent : process . env [ "CONCURRENT_UPLOADS" ] ? parseInt ( process . env [ "CONCURRENT_UPLOADS" ] ) : 5 ,
285
+ delay : process . env [ "DELAY_BETWEEN_UPLOADS" ] ? parseInt ( process . env [ "DELAY_BETWEEN_UPLOADS" ] ) : 0 ,
284
286
throwOnError : false
285
287
} ) ;
286
288
Original file line number Diff line number Diff line change @@ -225,6 +225,8 @@ async function run() {
225
225
}
226
226
}
227
227
228
+ // If the contents were parsed into an array and the first element was set as default "**",
229
+ // then upload the entire directory
228
230
if ( contents . length === 1 && contents [ 0 ] === "**" ) {
229
231
tl . debug ( "Upload a directory to a remote machine" ) ;
230
232
@@ -279,8 +281,8 @@ async function run() {
279
281
280
282
// Upload files to remote machine
281
283
const q = new Queue ( {
282
- concurrent : 5 ,
283
- delay : 0 ,
284
+ concurrent : process . env [ "CONCURRENT_UPLOADS" ] ? parseInt ( process . env [ "CONCURRENT_UPLOADS" ] ) : 5 ,
285
+ delay : process . env [ "DELAY_BETWEEN_UPLOADS" ] ? parseInt ( process . env [ "DELAY_BETWEEN_UPLOADS" ] ) : 0 ,
284
286
throwOnError : false
285
287
} ) ;
286
288
You can’t perform that action at this time.
0 commit comments