From 6ff760feaa24b70d3cdb8b6c39301eb0399d0e17 Mon Sep 17 00:00:00 2001 From: samber headless Date: Mon, 4 May 2026 20:45:01 +0200 Subject: [PATCH] ci: add dependabot automerge workflow --- .github/workflows/dependabot-automerge.yaml | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/dependabot-automerge.yaml diff --git a/.github/workflows/dependabot-automerge.yaml b/.github/workflows/dependabot-automerge.yaml new file mode 100644 index 0000000..caf7f66 --- /dev/null +++ b/.github/workflows/dependabot-automerge.yaml @@ -0,0 +1,24 @@ +name: Dependabot automerge + +on: + pull_request: + types: [opened, synchronize] + +jobs: + automerge: + runs-on: ubuntu-latest + if: github.actor == 'dependabot[bot]' + permissions: + contents: write + pull-requests: write + steps: + - name: Fetch Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@v3 + + - name: Enable auto-merge for github-actions updates + if: steps.metadata.outputs.package-ecosystem == 'github_actions' + run: gh pr merge --auto --squash "$PR_URL" + env: + PR_URL: ${{ github.event.pull_request.html_url }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}