From d6930e51f5a9180e12a465676888349d66c09899 Mon Sep 17 00:00:00 2001 From: Saman Ehsan Date: Wed, 13 Nov 2024 09:15:52 -0500 Subject: [PATCH] Update auto-approve-broadbot-prs.yml --- .github/workflows/auto-approve-broadbot-prs.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-approve-broadbot-prs.yml b/.github/workflows/auto-approve-broadbot-prs.yml index 189e1a33f..060bf7d7b 100644 --- a/.github/workflows/auto-approve-broadbot-prs.yml +++ b/.github/workflows/auto-approve-broadbot-prs.yml @@ -11,10 +11,11 @@ jobs: - name: "Echo github actor" env: GH_ACTOR: ${{ github.actor }} - run: echo "$GH_ACTOR" + PR_AUTHOR: ${{ github.event.pull_request.user.login }} + run: echo "$GH_ACTOR" && echo "$PR_AUTHOR" broadbot: runs-on: ubuntu-latest - if: github.actor == 'broadbot' + if: github.event.pull_request.user.login == 'broadbot' steps: - name: Approve a PR run: gh pr review --approve "$PR_URL"