Skip to content

Commit 7e14fc7

Browse files
authored
Merge pull request #840 from dopplershift/update-dependabot
Update dependabot & nightly workflows
2 parents 1118e8e + d215f03 commit 7e14fc7

File tree

3 files changed

+40
-12
lines changed

3 files changed

+40
-12
lines changed

.github/dependabot.yml

+14-10
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,44 @@
11
version: 2
22

33
updates:
4+
# Handle PyPI updates
45
- package-ecosystem: pip
56
directory: "/ci"
67
schedule:
7-
interval: daily
8-
time: "06:00"
9-
timezone: "America/Denver"
10-
8+
interval: weekly
119
allow:
1210
- dependency-type: all
13-
1411
open-pull-requests-limit: 10
1512
pull-request-branch-name:
1613
separator: "-"
1714
labels:
1815
- "Type: Maintenance"
16+
- "Area: Infrastructure"
1917
commit-message:
20-
prefix: "MNT: "
18+
prefix: "CI: "
2119
include: "scope"
20+
groups:
21+
flake8:
22+
patterns:
23+
- "flake8*"
24+
- "pycodestyle"
25+
- "pyflakes"
2226

27+
# Update GitHub Actions versions in workflows
2328
- package-ecosystem: "github-actions"
2429
# Workflow files stored in the
2530
# default location of `.github/workflows`
2631
directory: "/"
2732
schedule:
28-
interval: "daily"
29-
33+
interval: "weekly"
3034
allow:
3135
- dependency-type: all
32-
3336
open-pull-requests-limit: 10
3437
pull-request-branch-name:
3538
separator: "-"
3639
labels:
3740
- "Type: Maintenance"
41+
- "Area: Infrastructure"
3842
commit-message:
39-
prefix: "MNT: "
43+
prefix: "CI: "
4044
include: "scope"
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Auto-merge Dependabot PRs
2+
3+
on:
4+
pull_request_target:
5+
6+
jobs:
7+
#
8+
# Automatically review dependabot PRs and set them to automerge (on successful checks)
9+
#
10+
Automerge:
11+
runs-on: ubuntu-latest
12+
if: github.actor == 'dependabot[bot]'
13+
env:
14+
GH_TOKEN: ${{ github.token }}
15+
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
20+
steps:
21+
- name: Set auto-merge
22+
run: gh pr merge -R ${{ github.repository }} --merge --auto ${{ github.event.pull_request.number }}
23+
- name: Review PR
24+
run: gh pr review -R ${{ github.repository }} --approve ${{ github.event.pull_request.number }}

.github/workflows/nightly-builds.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Nightly Checks
22

33
on:
44
schedule:
5-
# Runs at 09Z (3am MDT)
6-
- cron: "0 9 * * 2"
5+
# Runs at 0930Z (3am MDT)
6+
- cron: "30 9 * * 2"
77

88
# Allow a manual run
99
workflow_dispatch:

0 commit comments

Comments
 (0)