From eb03300b68e9648699be9a4b1cc1d4b12a613623 Mon Sep 17 00:00:00 2001 From: John Andersen Date: Fri, 12 Jul 2024 07:58:50 -0700 Subject: [PATCH] ci: pr auto approve: Use repsoitory dispatch --- .github/workflows/00_pr_auto_approve.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/00_pr_auto_approve.yml b/.github/workflows/00_pr_auto_approve.yml index e093a44cbc..26e0c9f70e 100644 --- a/.github/workflows/00_pr_auto_approve.yml +++ b/.github/workflows/00_pr_auto_approve.yml @@ -12,8 +12,7 @@ on: # https://github.com/marketplace/actions/repository-dispatch jobs: trigger-approve-pr: - if: false - # if: ${{ github.event_name == 'pull_request_review' && contains(fromJson('["pdxjohnny"]'), github.actor) }} + if: ${{ github.event_name == 'pull_request_review' && contains(fromJson('["pdxjohnny"]'), github.actor) }} runs-on: ubuntu-latest permissions: contents: write @@ -37,7 +36,7 @@ jobs: permissions: pull-requests: write # if: ${{ github.event_name == 'repository_dispatch' && contains(fromJson('["dependabot[bot]", "github-actions[bot]", "pdxjohnny"]'), github.event.actor) }} - if: ${{ github.event_name == 'pull_request_review' && contains(fromJson('["pdxjohnny"]'), github.actor) }} + if: ${{ contains(fromJson('["pdxjohnny"]'), github.event.actor) }} steps: - name: Harden Runner uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1