generated from actions/javascript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
108 lines (96 loc) · 3.11 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: 'DependaMerge'
description:
'Automatic validation, approval and merging of pull requests, created and
processed by dependabot[bot]'
author: 'Daily DevOps & .NET'
branding:
icon: 'package'
color: 'purple'
# Define your inputs here.
inputs:
token:
description: 'The GitHub token used to merge the pull-request'
required: true
approve-only:
description:
'Only approve the pull-request. Valid values: true or false - Default:
false'
required: false
default: false
command:
description:
'The command to pass to Dependabot. Valid values: merge or squash -
Default: squash'
required: false
default: squash
handle-submodule:
description:
'If true, the action will merge pull-requests with submodule updates.
Valid values: true or false - Default: false'
required: false
default: false
handle-dependency-group:
description:
'If true, the action will merge dependency group pull-requests. Valid
values: true or false - Default: false'
required: false
default: true
target:
description:
'The version comparision target. Valid values: major, minor, patch, any -
Default: patch'
required: false
default: patch
skip-commit-verification:
description: |
If true, then the action will not expect the commits to have a verification signature.
It is required to set this to true in GitHub Enterprise Server.
required: false
default: false
skip-verification:
description:
'If true, the action will not validate the user or the commit verification
status.'
required: false
default: false
# Define your outputs here.
outputs:
state:
description: 'The state of the pull-request after the action has completed.'
value: ${{ steps.dependamerge.outputs.state }}
message:
description:
'More information about the state of the pull-request after the action has
completed.'
value: ${{ steps.dependamerge.outputs.message }}
runs:
using: composite
steps:
- name: Fetch metadata
id: metadata
uses: dependabot/[email protected]
if: |
github.event_name == 'pull_request' &&
(github.actor == 'dependabot[bot]' || github.triggering_actor == 'dependabot[bot]' || inputs.skip-verification)
with:
github-token: ${{ inputs.token }}
alert-lookup: true
compat-lookup: true
skip-commit-verification: ${{ inputs.skip-commit-verification }}
skip-verification: ${{ inputs.skip-verification }}
- name: DependaMerge
id: dependamerge
uses: actions/[email protected]
if: |
github.event_name == 'pull_request' &&
(github.actor == 'dependabot[bot]' || github.triggering_actor == 'dependabot[bot]' || inputs.skip-verification)
with:
github-token: ${{ inputs.token }}
script: |
const script = require('${{ github.action_path }}/dist/index.js')
await script({
github,
context,
inputs: ${{ toJSON(inputs) }},
metadata: ${{ toJSON(steps.metadata.outputs) }},
})