Skip to content

Commit 56c5fc2

Browse files
Automatically trigger auto merge for Dependabot PRs
Issue gh-14535
1 parent 7c3a6a5 commit 56c5fc2

File tree

3 files changed

+33
-55
lines changed

3 files changed

+33
-55
lines changed

Diff for: .github/workflows/edit-dependabot-pr.yml

-55
This file was deleted.

Diff for: .github/workflows/merge-dependabot-pr.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Merge Dependabot PR
2+
3+
on:
4+
pull_request:
5+
6+
run-name: Merge Dependabot PR ${{ github.ref_name }}
7+
8+
jobs:
9+
merge-dependabot-pr:
10+
permissions: write-all
11+
uses: spring-io/spring-github-workflows/.github/workflows/spring-merge-dependabot-pr.yml@v2
12+
with:
13+
mergeArguments: '--auto --rebase'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Trigger Dependabot Auto Merge Forward
2+
3+
on:
4+
push:
5+
6+
permissions: read-all
7+
8+
jobs:
9+
trigger-worflow:
10+
name: Trigger Workflow
11+
runs-on: ubuntu-latest
12+
if: github.event.commits[0].author.username == 'dependabot[bot]'
13+
steps:
14+
- name: Checkout
15+
id: checkout
16+
uses: actions/checkout@v4
17+
- id: trigger
18+
env:
19+
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
20+
run: gh workflow run dependabot-auto-merge-forward.yml -r main

0 commit comments

Comments
 (0)