Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Commit b5317f2

Browse files
author
Thiago C. D'Ávila
authored
Merge pull request #23 from staticdev/dependabot
Dependabot
2 parents 3222282 + c164d89 commit b5317f2

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.dependabot/config.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 1
2+
update_configs:
3+
- package_manager: "python"
4+
directory: "/.github/workflows"
5+
update_schedule: "daily"
6+
allowed_updates:
7+
- match:
8+
update_type: "all"
9+
- package_manager: "python"
10+
directory: "/"
11+
update_schedule: "daily"
12+
allowed_updates:
13+
- match:
14+
update_type: "all"
15+
- package_manager: "github_actions"
16+
directory: "/"
17+
update_schedule: "daily"
18+
allowed_updates:
19+
- match:
20+
update_type: "all"

.github/workflows/dependabot.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Dependabot
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
automerge:
10+
name: Merge Dependabot pull request
11+
runs-on: ubuntu-latest
12+
if: github.base_ref == 'master' && (github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]')
13+
steps:
14+
- uses: actions/[email protected]
15+
with:
16+
github-token: ${{github.token}}
17+
script: |
18+
github.pullRequests.merge({
19+
owner: context.repo.owner,
20+
repo: context.repo.repo,
21+
pull_number: context.payload.pull_request.number
22+
})

0 commit comments

Comments
 (0)