Skip to content
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
10 changes: 0 additions & 10 deletions .github/dependabot.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/dependabot-automerge.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/renovate-approve-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Approve and auto-merge Renovate Pull Requests with automerge label"

on:
pull_request:
branches:
- main

env:
PR_URL: ${{github.event.pull_request.html_url}}
# By default, the GitHub Actions workflow will get a GITHUB_TOKEN with read-only permissions.
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

permissions:
# This Allows the GITHUB_TOKEN to approve pull requests
pull-requests: write
# This Allows the GITHUB_TOKEN to auto merge pull requests
contents: write

jobs:
approve-pr:
runs-on: ubuntu-latest
if: ${{ (github.actor == 'team-builds-bot') && contains(github.event.pull_request.labels.*.name, 'autoapprove') }}
steps:
- name: Approve a renovate PR with the 'autoapprove' label
run: gh pr review --approve "$PR_URL"
- name: Enable auto-merge for the PR
run: gh pr merge --auto --squash "$PR_URL"
30 changes: 30 additions & 0 deletions .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Renovate Update dependencies
on:
schedule:
- cron: "20 10 * * *"
pull_request: # limit this to run on PRs that modify Renovate config files
paths:
- ".github/workflows/renovate.yaml"
- "renovate.json"
push:
branches:
- main
paths:
- ".github/workflows/renovate.yaml"
- "renovate.json"
jobs:
renovate:
name: Check Dependencies
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Run Renovate
uses: renovatebot/github-action@v46.1.19
with:
token: ${{ secrets.RENOVATE_GITHUB_TOKEN }}
configurationFile: renovate.json
env:
RENOVATE_REPOSITORIES: ${{ github.repository }}
LOG_LEVEL: ${{ github.ref_name == 'main' && 'INFO' || 'DEBUG' }}
RENOVATE_BASE_BRANCHES: main
12 changes: 12 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"labels": [
"dependencies",
"autoapprove",
"{{datasource}}"
],
"rebaseWhen": "conflicted",
"assigneesFromCodeOwners": true,
"prConcurrentLimit": 1,
"minimumReleaseAge": "3 days"
}
Loading