Trigger Dependabot Workflow when PR is merged

Issue gh-14721
This commit is contained in:
Marcus Hert Da Coregio 2024-03-12 10:26:17 -03:00
parent 8f42c86a57
commit a3c06d98ca

View File

@ -1,7 +1,8 @@
name: Trigger Dependabot Auto Merge Forward name: Trigger Dependabot Auto Merge Forward
on: on:
push: pull_request:
types: [closed]
permissions: read-all permissions: read-all
@ -9,7 +10,7 @@ jobs:
trigger-worflow: trigger-worflow:
name: Trigger Workflow name: Trigger Workflow
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event.commits[0].author.username == 'dependabot[bot]' && github.repository == 'spring-projects/spring-security' }} if: ${{ github.event.pull_request.merged == true && github.actor == 'dependabot[bot]' && github.repository == 'spring-projects/spring-security' }}
steps: steps:
- name: Checkout - name: Checkout
id: checkout id: checkout