-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 964 Bytes
/
auto-dependabot.yaml
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
# This file is centrally managed
# https://github.com/domdomegg/domdomegg/blob/master/file-sync/auto-dependabot.yaml
name: Dependabot automation
on:
pull_request:
types:
- opened
- reopened
- synchronize
- edited
- ready_for_review
- unlabeled
permissions:
pull-requests: write
contents: write
jobs:
dependabot_automation:
runs-on: ubuntu-20.04
timeout-minutes: 10
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Approve
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Enable auto-merge
if: ${{ !contains(github.event.pull_request.labels.*.name, 'do not merge') }}
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}