From 68a695f511113554a7ea7b4954622f49f395aeb8 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 25 May 2021 00:49:43 -0400 Subject: [PATCH] Updated .github/workflows/auto-approve.yml --- .github/workflows/auto-approve.yml | 37 +++++++++++++++++++----------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index 6315795..d537315 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -7,17 +7,26 @@ jobs: auto-approve: runs-on: ubuntu-latest steps: - - uses: hmarr/auto-approve-action@v2 - if: | - github.actor == 'dependabot[bot]' || - github.actor == 'dependabot' || - github.actor == 'dependabot-preview[bot]' || - github.actor == 'dependabot-preview' || - github.actor == 'renovate[bot]' || - github.actor == 'renovate' || - github.actor == 'pyup-bot' || - github.actor == 'github-actions[bot]' || - github.actor == 'pre-commit-ci' || - github.actor == 'pre-commit-ci[bot]' - with: - github-token: ${{ secrets.PAT_TOKEN }} + - uses: hmarr/auto-approve-action@v2 + if: | + ( + github.event.pull_request.user.login == 'dependabot[bot]' || + github.event.pull_request.user.login == 'dependabot' || + github.event.pull_request.user.login == 'dependabot-preview[bot]' || + github.event.pull_request.user.login == 'dependabot-preview' || + github.event.pull_request.user.login == 'renovate[bot]' || + github.event.pull_request.user.login == 'renovate' || + github.event.pull_request.user.login == 'github-actions[bot]' + ) + && + ( + github.actor == 'dependabot[bot]' || + github.actor == 'dependabot' || + github.actor == 'dependabot-preview[bot]' || + github.actor == 'dependabot-preview' || + github.actor == 'renovate[bot]' || + github.actor == 'renovate' || + github.actor == 'github-actions[bot]' + ) + with: + github-token: ${{ secrets.PAT_TOKEN }}