Skip to content

Commit a3c06d9

Browse files
Trigger Dependabot Workflow when PR is merged
Issue gh-14721
1 parent 8f42c86 commit a3c06d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
name: Trigger Dependabot Auto Merge Forward
22

33
on:
4-
push:
4+
pull_request:
5+
types: [closed]
56

67
permissions: read-all
78

89
jobs:
910
trigger-worflow:
1011
name: Trigger Workflow
1112
runs-on: ubuntu-latest
12-
if: ${{ github.event.commits[0].author.username == 'dependabot[bot]' && github.repository == 'spring-projects/spring-security' }}
13+
if: ${{ github.event.pull_request.merged == true && github.actor == 'dependabot[bot]' && github.repository == 'spring-projects/spring-security' }}
1314
steps:
1415
- name: Checkout
1516
id: checkout

0 commit comments

Comments
 (0)