From acc1e52236d31dd1d2bf5bcec43030bb357a4fb7 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 21 Sep 2022 00:30:42 -0400 Subject: [PATCH] Promote `if` to job level --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 81b354a..afe078a 100644 --- a/README.md +++ b/README.md @@ -35,9 +35,9 @@ jobs: runs-on: ubuntu-latest permissions: pull-requests: write + if: github.actor == 'dependabot[bot]' steps: - uses: hmarr/auto-approve-action@v2 - if: github.actor == 'dependabot[bot]' ``` If you want to use this action from a workflow file that doesn't run on the `pull_request` or `pull_request_target` events, use the `pull-request-number` input: @@ -74,9 +74,9 @@ jobs: runs-on: ubuntu-latest permissions: pull-requests: write + if: github.actor == 'dependabot[bot]' steps: - uses: hmarr/auto-approve-action@v2 - if: github.actor == 'dependabot[bot]' with: review-message: "Auto approved automated PR" ```