Browse Source

Do not try to run trigger dependabot automerge workflow in PRs

Issue gh-14535
pull/14603/head
Marcus Hert Da Coregio 2 years ago
parent
commit
731cd6131b
  1. 2
      .github/workflows/trigger-dependabot-auto-merge-forward.yml

2
.github/workflows/trigger-dependabot-auto-merge-forward.yml

@ -9,7 +9,7 @@ jobs: @@ -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

Loading…
Cancel
Save