From 86326f0b0a89bea3bee2cfdd591c02aed29266fb Mon Sep 17 00:00:00 2001 From: Nadeem Yaseen <70559777+NadeemYaseen@users.noreply.github.com> Date: Mon, 14 Oct 2024 11:06:51 +0200 Subject: [PATCH] Update pr_auto_merge.yml to have specific actor --- .github/workflows/pr_auto_merge.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr_auto_merge.yml b/.github/workflows/pr_auto_merge.yml index c378d9cb..b092e591 100644 --- a/.github/workflows/pr_auto_merge.yml +++ b/.github/workflows/pr_auto_merge.yml @@ -10,10 +10,9 @@ jobs: pull-requests: write steps: - uses: actions/checkout@v4 - - name: Run step if actor is user_a, user_b, or user_c - if: github.actor == 'NadeemYaseen' || github.actor == 'user_b' || github.actor == 'user_c' - run: echo "Hello, the workflow was triggered by ${{ github.actor }}! + - name: Try auto approve + if: github.actor == 'NadeemYaseen' || github.actor == 'zhergarvi' || github.actor == 'abdulhameed-akram' run: | urls=$(gh pr list --json url | jq -r '.[].url') for url in $urls; do