Only run trigger auto merge on supported branches

This commit is contained in:
Marcus Hert Da Coregio
2024-02-22 14:57:11 -03:00
parent b738fa7fa0
commit 4f53d3c4c3

View File

@@ -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