-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (48 loc) · 1.53 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Automerge
on:
push:
branches-ignore:
- master
- development
paths:
- 'docs/svgs/*'
- 'README.md'
- 'README.tex.md'
- 'README.md.tex'
pull_request:
branches-ignore:
- master
- development
paths:
- 'docs/svgs/*'
- 'README.md'
- 'README.tex.md'
- 'README.md.tex'
jobs:
merge:
name: Automerge
runs-on: ubuntu-latest
steps:
# set environment variables for linters
- name: Set Environment
run: |
echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
echo "MERGE_LABELS=Status:Automerge,Feature:Documentation,!wip,!work in progress" >> $GITHUB_ENV
echo "MERGE_REMOVE_LABELS=Status:Automerge" >> $GITHUB_ENV
echo "MERGE_METHOD=rebase" >> $GITHUB_ENV
echo "MERGE_COMMIT_MESSAGE=automatic" >> $GITHUB_ENV
echo "MERGE_FORKS=false" >> $GITHUB_ENV
echo "MERGE_RETRIES=6" >> $GITHUB_ENV
echo "MERGE_RETRY_SLEEP=10000" >> $GITHUB_ENV
echo "MERGE_DELETE_BRANCH=true" >> $GITHUB_ENV
echo "UPDATE_LABELS=" >> $GITHUB_ENV
echo "UPDATE_METHOD=merge" >> $GITHUB_ENV
- name: Wait for status checks
id: waitforstatuschecks
uses: "WyriHaximus/github-action-wait-for-status@v1"
with:
ignoreActions: Automerge,Generate Documentation
checkInterval: 40
- name: Automerge
if: steps.waitforstatuschecks.outputs.status == 'success'
uses: "pascalgn/[email protected]"