Skip to content

Commit 51de192

Browse files
authored
using reusable auto merge action
1 parent 696470f commit 51de192

1 file changed

Lines changed: 8 additions & 16 deletions

File tree

.github/workflows/auto-merge.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
1-
name: Auto Merge
1+
name: Enable Dependabot Auto-Merge
22

3-
on:
4-
pull_request_target:
3+
on: pull_request
54

6-
jobs:
7-
auto-merge:
8-
name: Merge Automatically
9-
runs-on: ubuntu-20.04
10-
if: github.actor == 'dependabot[bot]'
11-
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v4
5+
permissions:
6+
contents: write
7+
pull-requests: write
148

15-
- name: Prepare Auto Merge
16-
uses: ahmadnassri/action-dependabot-auto-merge@v2
17-
with:
18-
target: minor
19-
github-token: ${{ secrets.GITOPS_TOKEN }}
9+
jobs:
10+
dependabot:
11+
uses: Staffbase/gha-workflows/.github/workflows/template_automerge_dependabot.yml@v3.0.0

0 commit comments

Comments
 (0)