From 73cf7d7c04359a8d5686807a703e0beb70903e6c Mon Sep 17 00:00:00 2001 From: louis Date: Fri, 20 Nov 2026 09:22:26 +0100 Subject: [PATCH] ci: merge dependabot PRs with gh pr merge Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/integration.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 328b4fb..9b430ca 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -53,6 +53,7 @@ jobs: name: Merge Automatically needs: [test, build] runs-on: ubuntu-24.04 + if: ${{ github.actor == 'dependabot[bot]' }} permissions: pull-requests: write @@ -69,6 +70,8 @@ jobs: permission-pull-requests: write - name: Merge - uses: fastify/github-action-merge-dependabot@73ec4cbb5e56df5591eae286972d5b2201ffe90f # v3.15.0 - with: - github-token: ${{ steps.acces_token.outputs.token }} + env: + GH_TOKEN: ${{ steps.acces_token.outputs.token }} + GH_REPO: ${{ github.repository }} + PR_NUMBER: ${{ github.event.pull_request.number }} + run: gh pr merge "$PR_NUMBER" --admin --squash --delete-branch