@@ -16,7 +16,8 @@ const workflowRunTriggerOptions = [
16
16
'pull_request' ,
17
17
'push' ,
18
18
'workflow_dispatch' ,
19
- 'schedule'
19
+ 'schedule' ,
20
+ 'release'
20
21
] as const
21
22
type WorkflowRunTrigger = typeof workflowRunTriggerOptions [ number ]
22
23
@@ -305,7 +306,9 @@ class SkipDuplicateActions {
305
306
}
306
307
iterSha = commit . parents ?. length ? commit . parents [ 0 ] ?. sha : null
307
308
const changedFiles = commit . files
308
- ? commit . files . map ( f => f . filename ) . filter ( f => typeof f === 'string' )
309
+ ? commit . files
310
+ . map ( file => file . filename )
311
+ . filter ( file => typeof file === 'string' )
309
312
: [ ]
310
313
allChangedFiles . push ( changedFiles )
311
314
@@ -417,11 +420,12 @@ class SkipDuplicateActions {
417
420
return null
418
421
}
419
422
try {
420
- const res = await this . context . octokit . rest . repos . getCommit ( {
421
- ...this . context . repo ,
422
- ref : sha
423
- } )
424
- return res . data
423
+ return (
424
+ await this . context . octokit . rest . repos . getCommit ( {
425
+ ...this . context . repo ,
426
+ ref : sha
427
+ } )
428
+ ) . data
425
429
} catch ( error ) {
426
430
if ( error instanceof Error || typeof error === 'string' ) {
427
431
core . warning ( error )
@@ -441,9 +445,10 @@ async function main(): Promise<void> {
441
445
pathsFilter : getPathsFilterInput ( 'paths_filter' ) ,
442
446
doNotSkip : getDoNotSkipInput ( 'do_not_skip' ) ,
443
447
concurrentSkipping : getConcurrentSkippingInput ( 'concurrent_skipping' ) ,
444
- cancelOthers : core . getBooleanInput ( 'cancel_others' ) ?? false ,
445
- skipAfterSuccessfulDuplicates :
446
- core . getBooleanInput ( 'skip_after_successful_duplicate' ) ?? true
448
+ cancelOthers : core . getBooleanInput ( 'cancel_others' ) ,
449
+ skipAfterSuccessfulDuplicates : core . getBooleanInput (
450
+ 'skip_after_successful_duplicate'
451
+ )
447
452
}
448
453
449
454
const repo = github . context . repo
0 commit comments