Browse Source

Only run workflow for branches that matches [5-9]+.[5-9]+.x

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

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

@ -2,6 +2,8 @@ name: Trigger Dependabot Auto Merge Forward @@ -2,6 +2,8 @@ name: Trigger Dependabot Auto Merge Forward
on:
push:
branches:
- [5-9]+.[5-9]+.x
permissions: read-all
@ -9,7 +11,7 @@ jobs: @@ -9,7 +11,7 @@ jobs:
trigger-worflow:
name: Trigger Workflow
runs-on: ubuntu-latest
if: ${{ github.event.commits[0].author.username == 'dependabot[bot]' && github.repository == 'spring-projects/spring-security' && startsWith(github.ref, 'refs/heads/') }}
if: ${{ github.event.commits[0].author.username == 'dependabot[bot]' && github.repository == 'spring-projects/spring-security' }}
steps:
- name: Checkout
id: checkout

Loading…
Cancel
Save