Skip to content

Commit

Permalink
Only run workflow for branches that matches [5-9]+.[5-9]+.x
Browse files Browse the repository at this point in the history
Issue gh-14535
  • Loading branch information
marcusdacoregio committed Feb 14, 2024
1 parent 2ed7b85 commit 2bfdb0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/trigger-dependabot-auto-merge-forward.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ name: Trigger Dependabot Auto Merge Forward

on:
push:
branches:
- [5-9]+.[5-9]+.x

permissions: read-all

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
Expand Down

0 comments on commit 2bfdb0c

Please sign in to comment.