-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
69 lines (58 loc) · 1.99 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
name: mergeabot
description: Auto-merge Dependabot PRs, only after quarantine days
inputs:
exclude-title-regex:
description: Exclude PRs whose titles match this regular expression
required: true
default: ""
quarantine-days:
description: |
How long PRs must have gone since their last update to qualify for
auto-merge. Default is 5, Set to -1 to disable
required: true
default: 5
strategy:
description: How to merge PRs, must be one of merge, rebase, or squash
required: true
default: rebase
remove-reviewers:
description: Remove any reviewers from Dependabot PRs when they open?
required: true
default: true
github-actor:
description: "Override GitHub actor. This is mostly useful in testing."
required: true
default: "${{ github.actor }}"
github-repository:
description: "Override GitHub repository, if necessary"
required: true
default: "${{ github.repository }}"
github-token:
description: "Override GitHub token, if necessary"
required: true
default: "${{ github.token }}"
dry-run:
description: "Set to 1 to print, but not perform, any actions"
required: true
default: 0
outputs: {}
runs:
using: composite
steps:
- name: Auto-merge Dependabot PRs
shell: bash
run: ${{ github.action_path }}/bin/automerge-prs
env:
EXCLUDE_TITLE_REGEX: ${{ inputs.exclude-title-regex }}
QUARANTINE_DAYS: ${{ inputs.quarantine-days }}
STRATEGY: ${{ inputs.strategy }}
REMOVE_REVIEWERS: ${{ inputs.remove-reviewers }}
DRY_RUN: ${{ inputs.dry-run }}
GH_TOKEN: ${{ inputs.github-token }}
GH_ACTOR: ${{ inputs.github-actor }}
GH_REPO: ${{ inputs.github-repository }}
GH_EVENT: ${{ github.event_name }}
GH_PR_ACTION: ${{ github.event.action }}
GH_PR_NUMBER: ${{ github.event.number }}
GH_PR_TITLE: ${{ github.event.pull_request.title }}
GH_PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}