-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 884 Bytes
/
dependabot.yml
File metadata and controls
33 lines (28 loc) · 884 Bytes
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
name: "Dependabot"
on:
workflow_run:
types:
- completed
workflows: ["Run Tests"]
jobs:
dependabot-approval:
runs-on: ubuntu-latest
if: >
(github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]') &&
${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: hmarr/auto-approve-action@v2
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
with:
github-token: "${{ secrets.DEPENDABOT_TOKEN }}"
merge-me:
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
name: Merge me!
needs: dependabot-approval
runs-on: ubuntu-latest
steps:
- name: Merge me!
uses: ridedott/merge-me-action@master
with:
GITHUB_TOKEN: ${{ secrets.DEPENDABOT_TOKEN }}
timeout-minutes: 5