File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ inputs:
92
92
description : Use system provided `unzip` utility instead of JS library for unpacking
93
93
required : false
94
94
default : false
95
+ merge_multiple :
96
+ description : If multiple artifacts are found with `name_is_regexp` set to `true`, merge them into one directory
97
+ required : false
98
+ default : false
95
99
outputs :
96
100
error_message :
97
101
description : The error message, if an error occurs
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ async function main() {
39
39
const skipUnpack = core . getBooleanInput ( "skip_unpack" )
40
40
const ifNoArtifactFound = core . getInput ( "if_no_artifact_found" )
41
41
const useUnzip = core . getBooleanInput ( "use_unzip" )
42
+ const mergeMultiple = core . getBooleanInput ( "merge_multiple" )
42
43
let workflow = core . getInput ( "workflow" )
43
44
let workflowSearch = core . getBooleanInput ( "workflow_search" )
44
45
let workflowConclusion = core . getInput ( "workflow_conclusion" )
@@ -268,7 +269,7 @@ async function main() {
268
269
continue
269
270
}
270
271
271
- const dir = name && ! nameIsRegExp ? path : pathname . join ( path , artifact . name )
272
+ const dir = name && ( ! nameIsRegExp || mergeMultiple ) ? path : pathname . join ( path , artifact . name )
272
273
273
274
fs . mkdirSync ( dir , { recursive : true } )
274
275
You can’t perform that action at this time.
0 commit comments