-
-
Notifications
You must be signed in to change notification settings - Fork 192
32 lines (28 loc) · 960 Bytes
/
auto-merge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Automatically merge Dependabot PRs when version comparison is within the range
# that is configured in .github/auto-merge.yml
# yamllint disable rule:truthy
---
name: Auto-Merge Dependabot PRs
on:
pull_request_target:
branches-ignore:
- 'gh-pages'
# default read-only permission
permissions:
contents: read
jobs:
auto-merge:
permissions:
contents: write # ahmadnassri/action-dependabot-auto-merge
pull-requests: write # ahmadnassri/action-dependabot-auto-merge
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check if PR should be auto-merged
uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
# This must be a personal access token with push access
github-token: ${{ secrets.AUTO_MERGE_TOKEN }}
# By default, squash and merge, so Github chooses nice commit messages
command: squash and merge