-
Notifications
You must be signed in to change notification settings - Fork 104
83 lines (72 loc) · 2.23 KB
/
dependabot-merge.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
name: Dependabot Commenter
on:
pull_request_target:
types:
- labeled
- opened
- reopened
- closed
- synchronize
jobs:
comment:
runs-on: ubuntu-latest
if: |
(github.event.action == 'labeled' || github.event.action == 'opened' || github.event.action == 'reopened')
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: GitHub Automerge
if: |
contains(github.event.pull_request.labels.*.name, ':shipit: merge')
|| contains(github.event.pull_request.labels.*.name, 'javascript')
|| contains(github.event.pull_request.labels.*.name, 'github-actions')
uses: alexwilson/[email protected]
continue-on-error: true
with:
github-token: '${{ secrets.OMNISHARP_BOT_TOKEN }}'
merge-method: 'SQUASH'
labeler:
runs-on: ubuntu-latest
if: |
(github.event.action == 'closed' || github.event.action == 'opened' || github.event.action == 'reopened')
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: GitHub Remove Labels
if: |
github.event.action == 'closed'
uses: actions-ecosystem/action-remove-labels@v1
with:
labels: |
:shipit: merge
github-actions
javascript
.NET