Skip to content

Commit 619cbc4

Browse files
Add Auto Merge Forward Dependabot Commits workflow
Closes gh-14535
1 parent 2a5bfc3 commit 619cbc4

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

Diff for: .github/workflows/dependabot-auto-merge-forward.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Auto Merge Forward Dependabot Commits
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
9+
concurrency:
10+
group: dependabot-auto-merge-forward
11+
12+
jobs:
13+
get-supported-branches:
14+
uses: spring-io/spring-security-release-tools/.github/workflows/retrieve-spring-supported-versions.yml@d615a5694c761901330655fdd0e3721dc4ccf0fe
15+
with:
16+
project: spring-security
17+
type: oss
18+
19+
auto-merge-forward-dependabot:
20+
name: Auto Merge Forward Dependabot Commits
21+
runs-on: ubuntu-latest
22+
needs: [get-supported-branches]
23+
permissions:
24+
contents: write
25+
steps:
26+
- name: Checkout
27+
id: checkout
28+
uses: actions/checkout@v4
29+
- name: Setup GitHub User
30+
id: setup-gh-user
31+
run: |
32+
git config user.name 'github-actions[bot]'
33+
git config user.email 'github-actions[bot]@users.noreply.github.com'
34+
- name: Run Auto Merge Forward
35+
id: run-auto-merge-forward
36+
uses: marcusdacoregio/auto-merge-forward@c482956226871dfff01598a3e6fd66c6a5ecbca7
37+
with:
38+
branches: ${{ needs.get-supported-branches.outputs.supported_versions }},main
39+
from-author: dependabot[bot]
40+
notify_result:
41+
name: Check for failures
42+
needs: [ auto-merge-forward-dependabot ]
43+
if: failure()
44+
runs-on: ubuntu-latest
45+
permissions:
46+
actions: read
47+
steps:
48+
- name: Send Slack message
49+
uses: Gamesight/[email protected]
50+
with:
51+
repo_token: ${{ secrets.GITHUB_TOKEN }}
52+
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
53+
channel: '#spring-security-ci'
54+
name: 'CI Notifier'

0 commit comments

Comments
 (0)