Skip to content

Commit b88ddc8

Browse files
committed
Enable Dependabot Auto-Merge on Main
Closes gh-18712 Signed-off-by: Josh Cummings <3627351+jzheaux@users.noreply.github.com>
1 parent 688b6ca commit b88ddc8

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Dependabot Auto-Merge
2+
on:
3+
pull_request:
4+
branches:
5+
- 'main'
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
dependabot:
13+
runs-on: ubuntu-latest
14+
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'spring-projects/spring-security'
15+
steps:
16+
- name: Dependabot metadata
17+
id: metadata
18+
uses: dependabot/fetch-metadata@d7267f607e9d3fb96fc2fbe83e0af444713e90b7
19+
with:
20+
github-token: ${{ github.token }}
21+
- name: Enable auto-merge for Dependabot PRs
22+
run: gh pr merge --auto --merge "$PR_URL"
23+
env:
24+
PR_URL: ${{ github.event.pull_request.html_url }}
25+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)