From f405a59e958a7dd8fe9d6e749eebd6aa3724042b Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Fri, 18 Oct 2024 16:28:15 +0200 Subject: [PATCH] Update automerge.yaml Signed-off-by: Kjeld Schouten --- .github/workflows/automerge.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/automerge.yaml b/.github/workflows/automerge.yaml index 44ccff7a796..c841c201f01 100644 --- a/.github/workflows/automerge.yaml +++ b/.github/workflows/automerge.yaml @@ -14,8 +14,9 @@ jobs: - name: Approve PR uses: hmarr/auto-approve-action@v3 if: ${{ - contains(github.event.pull_request.title, 'by renovate') || - contains(github.event.pull_request.title, '.all-contributorsrc') + github.event.workflow_run.pull_requests[0].base.repo.id == github.event.workflow_run.pull_requests[0].head.repo.id && + (contains(github.event.workflow_run.pull_requests[0].title, 'by renovate') || + contains(github.event.workflow_run.pull_requests[0].title, '.all-contributorsrc')) }} with: github-token: "${{ secrets.OR_PAT }}"