forked from fkirc/skip-duplicate-actions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
42 lines (41 loc) · 1.4 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
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: 'true'
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, outdated_runs, always'
required: true
default: 'never'
outputs:
should_skip:
description: 'true if the current run can be safely skipped. This should be evaluated for either individual steps or entire jobs.'
runs:
using: 'node12'
main: 'dist/index.js'