From dfa306b907a01a978abb54c49f42943a8afdc860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 20 Jan 2025 15:08:43 +0100 Subject: [PATCH] add dependabot automerge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Bauer --- .github/auto-merge.yml | 3 +++ .github/dependabot.yml | 9 ++++++++ .github/workflows/dependabot-auto-merge.yaml | 23 ++++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 .github/auto-merge.yml create mode 100644 .github/workflows/dependabot-auto-merge.yaml diff --git a/.github/auto-merge.yml b/.github/auto-merge.yml new file mode 100644 index 000000000..64ecc2d3f --- /dev/null +++ b/.github/auto-merge.yml @@ -0,0 +1,3 @@ +- match: + dependency_type: all + update_type: "semver:minor" diff --git a/.github/dependabot.yml b/.github/dependabot.yml index efd9bdbec..1eca094a9 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,3 +6,12 @@ updates: directory: "/" schedule: interval: "weekly" + time: "09:00" + timezone: "Europe/Berlin" + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + time: "09:00" + timezone: "Europe/Berlin" diff --git a/.github/workflows/dependabot-auto-merge.yaml b/.github/workflows/dependabot-auto-merge.yaml new file mode 100644 index 000000000..77a73f43b --- /dev/null +++ b/.github/workflows/dependabot-auto-merge.yaml @@ -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]' + steps: + - name: Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + - name: Enable auto-merge for Dependabot PRs + run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GH_TOKEN: ${{secrets.GITHUB_TOKEN}}