Skip to content

Commit

Permalink
Only run trigger auto merge on supported branches
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusdacoregio committed Feb 22, 2024
1 parent b738fa7 commit 4f53d3c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/trigger-auto-merge-forward.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ name: Trigger Auto Merge Forward

on:
push:
branches:
- '*.x'

permissions:
contents: write
permissions: read-all

jobs:
trigger-worflow:
name: Trigger Workflow
runs-on: ubuntu-latest
if: github.event.commits[0].author.username == 'dependabot[bot]'
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 4f53d3c

Please sign in to comment.