File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1
1
label :
2
- - unknown : ' this-is-not-supported'
2
+ - all :
3
+ - unknown : ' this-is-not-supported'
Original file line number Diff line number Diff line change @@ -467,7 +467,9 @@ exports.checkAny = checkAny;
467
467
// equivalent to "Array.every()" but expanded for debugging and clarity
468
468
function checkAll(matchConfigs, changedFiles) {
469
469
core.debug(` checking "all" patterns`);
470
- if (!matchConfigs.length) {
470
+ if (!matchConfigs.length ||
471
+ // Make sure that all the configs have keys that we can check for
472
+ !matchConfigs.some(configOption => ALLOWED_CONFIG_KEYS.includes(Object.keys(configOption)[0]))) {
471
473
core.debug(` no "all" patterns to check`);
472
474
return false;
473
475
}
Original file line number Diff line number Diff line change @@ -260,7 +260,13 @@ export function checkAll(
260
260
changedFiles : string [ ]
261
261
) : boolean {
262
262
core . debug ( ` checking "all" patterns` ) ;
263
- if ( ! matchConfigs . length ) {
263
+ if (
264
+ ! matchConfigs . length ||
265
+ // Make sure that all the configs have keys that we can check for
266
+ ! matchConfigs . some ( configOption =>
267
+ ALLOWED_CONFIG_KEYS . includes ( Object . keys ( configOption ) [ 0 ] )
268
+ )
269
+ ) {
264
270
core . debug ( ` no "all" patterns to check` ) ;
265
271
return false ;
266
272
}
You can’t perform that action at this time.
0 commit comments