-
-
Notifications
You must be signed in to change notification settings - Fork 6
30 lines (26 loc) · 851 Bytes
/
automerge.yaml
File metadata and controls
30 lines (26 loc) · 851 Bytes
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
name: Automerge and Approve
on:
workflow_run:
workflows: ["Pull Request"] # Name of the main CI workflow
types:
- completed
jobs:
approve:
runs-on:
group: default
steps:
- name: Approve PR
uses: hmarr/auto-approve-action@v3
if: github.actor == 'truecharts-admin'
with:
github-token: "${{ secrets.OR_PAT }}"
review-message: "Auto approved automated PR"
pull-request-number: ${{ github.event.workflow_run.pull_requests[0].number }}
- name: Automerge
if: github.actor == 'truecharts-admin'
uses: pascalgn/automerge-action@7961b8b5eec56cc088c140b56d864285eabd3f67 # v0.16.4
env:
GITHUB_TOKEN: "${{ secrets.BOT_TOKEN }}"
UPDATE_RETRIES: 24
UPDATE_RETRY_SLEEP: 60000
MERGE_METHOD: "squash"