From cebb0a8addbde3af9c367295af3ce4949caf7bba Mon Sep 17 00:00:00 2001 From: Daniel Scherf Date: Mon, 23 Sep 2024 16:57:03 +0200 Subject: [PATCH] Replace dependabot with renovate --- .github/dependabot.yml | 12 ---------- .github/renovate.json | 8 +++++++ .github/workflows/dependabot-approve.yml | 29 ------------------------ 3 files changed, 8 insertions(+), 41 deletions(-) delete mode 100644 .github/dependabot.yml create mode 100644 .github/renovate.json delete mode 100644 .github/workflows/dependabot-approve.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 6948df111..000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,12 +0,0 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - - package-ecosystem: "gradle" - directory: "/" - schedule: - interval: "daily" - target-branch: "master" diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 000000000..9c00b24e9 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended" + ], + "automerge": true, + "autoApprove": true +} diff --git a/.github/workflows/dependabot-approve.yml b/.github/workflows/dependabot-approve.yml deleted file mode 100644 index 7ebd32c87..000000000 --- a/.github/workflows/dependabot-approve.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Dependabot approve & merge -on: pull_request_target - -permissions: - pull-requests: write - contents: write - -jobs: - dependabot: - runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' }} - steps: - - name: Dependabot metadata - id: metadata - uses: dependabot/fetch-metadata@v1.1.1 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - - name: Approve a PR - run: gh pr review --approve "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - - name: Enable auto-merge for Dependabot PRs - run: gh pr merge --auto --squash "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file