From 731cd6131b57e1d42333383d7065c2b01381942f Mon Sep 17 00:00:00 2001 From: Marcus Hert Da Coregio Date: Tue, 13 Feb 2024 10:45:08 -0300 Subject: [PATCH] Do not try to run trigger dependabot automerge workflow in PRs Issue gh-14535 --- .github/workflows/trigger-dependabot-auto-merge-forward.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/trigger-dependabot-auto-merge-forward.yml b/.github/workflows/trigger-dependabot-auto-merge-forward.yml index fa80aafc7a..08be3c35ed 100644 --- a/.github/workflows/trigger-dependabot-auto-merge-forward.yml +++ b/.github/workflows/trigger-dependabot-auto-merge-forward.yml @@ -9,7 +9,7 @@ jobs: trigger-worflow: name: Trigger Workflow runs-on: ubuntu-latest - if: ${{ github.event.commits[0].author.username == 'dependabot[bot]' && github.repository_owner == 'spring-projects' }} + if: ${{ github.event.commits[0].author.username == 'dependabot[bot]' && github.repository == 'spring-projects/spring-security' && startsWith(github.ref, 'refs/heads/') }} steps: - name: Checkout id: checkout