Skip to content

Commit 654e2f9

Browse files
committed
Migrate dependabot-auto-merge to sue445/workflows
1 parent 517b0d1 commit 654e2f9

File tree

2 files changed

+10
-26
lines changed

2 files changed

+10
-26
lines changed

.github/dependabot-auto-merge.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,16 @@
11
name: dependabot-auto-merge
22

33
on:
4-
pull_request_target:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize # PR branch is rebased
58

69
jobs:
710
auto-merge:
8-
runs-on: ubuntu-latest
9-
10-
if: github.actor == 'dependabot[bot]'
11-
12-
steps:
13-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
14-
15-
- uses: ahmadnassri/action-dependabot-auto-merge@45fc124d949b19b6b8bf6645b6c9d55f4f9ac61a # v2.6.6
16-
with:
17-
github-token: ${{ secrets.GH_PAT_DEPENDABOT_AUTO_MERGE }}
18-
config: .github/dependabot-auto-merge.yml
19-
20-
- name: Slack Notification (not success)
21-
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
22-
if: "! success()"
23-
continue-on-error: true
24-
with:
25-
status: ${{ job.status }}
26-
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
11+
uses: sue445/workflows/.github/workflows/dependabot-auto-merge.yml@main
12+
secrets:
13+
# TODO: Set secrets to Dependabot secrets
14+
app-id: ${{ secrets.RUBY_GO_GEM_BOT_APP_ID }}
15+
private-key: ${{ secrets.RUBY_GO_GEM_BOT_PRIVATE_KEY }}
16+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}

0 commit comments

Comments
 (0)