-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 888 Bytes
/
automerge.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
33
34
name: Dependabot auto-merge
on: pull_request_target
jobs:
dependabot:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup PNPM
uses: pnpm/action-setup@master
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@main
with:
node-version: 18
registry-url: https://registry.npmjs.org/
cache: 'pnpm'
- name: Git configuration
run: |
git config --global user.email "[email protected]"
git config --global user.name "hugocxl"
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}