Skip to content

Commit

Permalink
Replace Renovate with Dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
anothertobi committed Dec 28, 2024
1 parent 245730e commit 6eb640e
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 6 deletions.
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "gomod"
directory: "/"
allow:
- dependency-type: all
groups:
minor-patch:
applies-to: version-updates
update-types:
- minor
- patch
schedule:
interval: "weekly"
23 changes: 23 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Dependabot auto-merge
on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'anothertobi/viseca-exporter'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@06ea45a2e4582d87b11f03c7ce596ae3261f39f6
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if: steps.metadata.outputs.update-type != 'version-update:semver-major'
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
6 changes: 0 additions & 6 deletions renovate.json

This file was deleted.

0 comments on commit 6eb640e

Please sign in to comment.