forked from fkirc/skip-duplicate-actions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
52 lines (52 loc) · 1.83 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: 'Skip Duplicate Actions'
description: 'Skip duplicate workflow runs. Skip or ignore specific paths. Cancel outdated workflow runs.'
author: 'fkirc'
branding:
icon: 'stop-circle'
color: 'white'
inputs:
github_token:
description: 'Your GitHub Access Token'
required: true
default: ${{ github.token }}
paths_ignore:
description: 'A JSON-array with ignored path patterns'
required: false
default: '[]'
paths:
description: 'A JSON-array with path patterns'
required: false
default: '[]'
paths_filter:
description: 'A YAML-string with named paths_ignore/paths patterns'
required: false
cancel_others:
description: 'If true, then workflow runs from outdated commits will be cancelled'
required: false
default: 'false'
skip_after_successful_duplicate:
description: 'If true, skip if an already finished duplicate run can be found'
required: false
default: 'true'
do_not_skip:
description: 'A JSON-array with triggers that should never be skipped'
required: false
default: '["workflow_dispatch", "schedule"]'
concurrent_skipping:
description: 'One of never, same_content, same_content_newer, outdated_runs, always'
required: true
default: 'never'
outputs:
should_skip:
description: 'Returns true if the current run should be skipped according to your configured rules'
reason:
description: 'The reason why the current run is considered skippable or unskippable'
skipped_by:
description: 'Returns information about the workflow run which caused the current run to be skipped'
changed_files:
description: 'A two-dimensional array, with a list of changed files for each commit that was traced back'
paths_result:
description: 'Returns information for each configured filter in paths_filter'
runs:
using: 'node16'
main: 'dist/index.js'