-
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 923 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
33
34
35
36
37
name: 'Dependabot Automerge - Action'
on:
pull_request_target:
branches:
- dev
permissions:
pull-requests: write
issues: write
contents: read
checks: write
jobs:
worker:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: 'Automerge'
id: automerge
uses: ahmadnassri/[email protected]
with:
github-token: ${{ secrets.AUTO_MERGE }}
command: 'squash and merge'
target: minor
- name: 'Feedback'
if: steps.automerge.outputs.mergeResult == 'merged'
run: |
echo "Pull request ${{ steps.automerge.outputs.pullRequestNumber }} merged!"
# - name: 'Error check'
# if: steps.automerge.outputs.mergeResult !== 'merged'
# run: |
# echo "Pull request ${{ steps.automerge.outputs.pullRequestNumber }} don't merged!"
# exit 1