-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathaction.yml
55 lines (55 loc) · 1.73 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
53
54
55
name: 'Check for API breaking changes'
description: 'Detect breaking changes'
inputs:
base:
description: 'Path of original OpenAPI spec in YAML or JSON format'
required: true
revision:
description: 'Path of revised OpenAPI spec in YAML or JSON format'
required: true
fail-on-diff:
description: 'Fail with exit code 1 if any breaking changes are found'
required: false
default: 'true'
include-checks:
description: 'Include any of the defined optional breaking changes checks'
required: false
include-path-params:
description: 'Include path parameter names in endpoint matching'
required: false
default: 'false'
deprecation-days-beta:
description: 'Consider minimum sunset period for deprecation of beta API endpoints'
required: false
deprecation-days-stable:
description: 'Consider minimum sunset period for deprecation of stable API endpoints'
required: false
exclude-elements:
description: 'Exclude certain kinds of changes'
required: false
default: ''
composed:
description: 'Run in composed mode'
required: false
default: 'false'
output-to-file:
description: 'Output to a file at the given path'
required: false
default: ''
outputs:
breaking:
description: 'Output summary of API breaking changes, encompassing both warnings and errors'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.base }}
- ${{ inputs.revision }}
- ${{ inputs.fail-on-diff }}
- ${{ inputs.include-checks }}
- ${{ inputs.include-path-params }}
- ${{ inputs.deprecation-days-beta }}
- ${{ inputs.deprecation-days-stable }}
- ${{ inputs.exclude-elements }}
- ${{ inputs.composed }}
- ${{ inputs.output-to-file }}