Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependabot & nightly workflows #840

Merged
merged 3 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions .github/dependabot.yml
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"
24 changes: 24 additions & 0 deletions .github/workflows/automerge-dependabot.yml
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 }}
4 changes: 2 additions & 2 deletions .github/workflows/nightly-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Nightly Checks

on:
schedule:
# Runs at 09Z (3am MDT)
- cron: "0 9 * * 2"
# Runs at 0930Z (3am MDT)
- cron: "30 9 * * 2"

# Allow a manual run
workflow_dispatch:
Expand Down