forked from fkirc/skip-duplicate-actions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
45 lines (45 loc) · 1.76 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
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, e.g. something like ["**/README.md", "**/docs/**"]'
required: false
default: '[]'
paths:
description: 'A JSON-array with path patterns, e.g. something like ["platform-specific/**"]'
required: false
default: '[]'
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. This should be evaluated for either individual steps or entire jobs.'
reason:
description: 'The reason why the current run is considered skippable or unskippable. Corresponds approximately to the input options, for example `skip_after_successful_duplicate`.'
skipped_by:
description: 'Information about the workflow run which caused the current run to be skipped.'
runs:
using: 'node16'
main: 'dist/index.js'