From a8b2855910da393a147b634dffe3127e39360897 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Thu, 16 May 2024 21:01:00 -0700 Subject: [PATCH] ci: Auto-merge PRs from within repo even if I'm the triggering actor --- .github/workflows/auto_merge_prs.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto_merge_prs.yml b/.github/workflows/auto_merge_prs.yml index a4f334c7..c2e5e981 100644 --- a/.github/workflows/auto_merge_prs.yml +++ b/.github/workflows/auto_merge_prs.yml @@ -8,7 +8,9 @@ permissions: jobs: auto-merge: runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'github-actions' }} + if: | + ${{ github.actor == 'dependabot[bot]' || github.actor == 'github-actions' || ( github.actor == 'Pr0methean' + && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name )}} steps: - name: Dependabot metadata id: metadata