From 3507fadc5b8f6d5a26aeed2946da709f37b6d4cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 16 Sep 2024 18:04:08 +0300 Subject: [PATCH] Move dependabot if to job level --- .github/workflows/automerge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 436e257cc7..e7ede14fa8 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -9,6 +9,7 @@ jobs: automerge: name: Dependabot auto-merge runs-on: ubuntu-20.04 + if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }} permissions: pull-requests: write @@ -16,7 +17,6 @@ jobs: steps: - uses: fastify/github-action-merge-dependabot@v3.0.0 - if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }} with: target: minor github-token: ${{ secrets.github-token }}