forked from opensearch-project/documentation-website
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 975 Bytes
/
automerge-backport.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
name: Automerge Backport
on:
pull_request:
pull_request_review:
types:
- submitted
check_suite:
types:
- completed
status: {}
jobs:
automerge-backport:
if: |
github.repository == 'opensearch-project/documentation-website' &&
startsWith(github.event.pull_request.head.ref, 'backport/')
runs-on: ubuntu-latest
steps:
- name: Wait some time so that label and approval is up
run: sleep 30
- id: automerge
name: automerge
uses: "pascalgn/[email protected]"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_LABELS: "backport-automerge,!On hold"
MERGE_FILTER_AUTHOR: "opensearch-trigger-bot[bot]"
MERGE_REQUIRED_APPROVALS: "1"
MERGE_RETRIES: "20"
MERGE_RETRY_SLEEP: "10000"
MERGE_ERROR_FAIL: "true"
MERGE_FORKS: "false"
MERGE_METHOD: "squash"
MERGE_DELETE_BRANCH: "true"