Skip to content

Commit a6d362f

Browse files
Make trigger-dependabot-auto-merge-forward.yml run on push
Issue gh-14721
1 parent 37984c2 commit a6d362f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
name: Trigger Dependabot Auto Merge Forward
22

33
on:
4-
pull_request:
5-
types: [closed]
4+
push:
5+
branches:
6+
- '*.x'
67

78
permissions: read-all
89

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

0 commit comments

Comments
 (0)