-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #840 from dopplershift/update-dependabot
Update dependabot & nightly workflows
- Loading branch information
Showing
3 changed files
with
40 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,44 @@ | ||
version: 2 | ||
|
||
updates: | ||
# Handle PyPI updates | ||
- package-ecosystem: pip | ||
directory: "/ci" | ||
schedule: | ||
interval: daily | ||
time: "06:00" | ||
timezone: "America/Denver" | ||
|
||
interval: weekly | ||
allow: | ||
- dependency-type: all | ||
|
||
open-pull-requests-limit: 10 | ||
pull-request-branch-name: | ||
separator: "-" | ||
labels: | ||
- "Type: Maintenance" | ||
- "Area: Infrastructure" | ||
commit-message: | ||
prefix: "MNT: " | ||
prefix: "CI: " | ||
include: "scope" | ||
groups: | ||
flake8: | ||
patterns: | ||
- "flake8*" | ||
- "pycodestyle" | ||
- "pyflakes" | ||
|
||
# Update GitHub Actions versions in workflows | ||
- package-ecosystem: "github-actions" | ||
# Workflow files stored in the | ||
# default location of `.github/workflows` | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
|
||
interval: "weekly" | ||
allow: | ||
- dependency-type: all | ||
|
||
open-pull-requests-limit: 10 | ||
pull-request-branch-name: | ||
separator: "-" | ||
labels: | ||
- "Type: Maintenance" | ||
- "Area: Infrastructure" | ||
commit-message: | ||
prefix: "MNT: " | ||
prefix: "CI: " | ||
include: "scope" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Auto-merge Dependabot PRs | ||
|
||
on: | ||
pull_request_target: | ||
|
||
jobs: | ||
# | ||
# Automatically review dependabot PRs and set them to automerge (on successful checks) | ||
# | ||
Automerge: | ||
runs-on: ubuntu-latest | ||
if: github.actor == 'dependabot[bot]' | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Set auto-merge | ||
run: gh pr merge -R ${{ github.repository }} --merge --auto ${{ github.event.pull_request.number }} | ||
- name: Review PR | ||
run: gh pr review -R ${{ github.repository }} --approve ${{ github.event.pull_request.number }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters