forked from bioconda/bioconda-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (64 loc) · 1.57 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: AutoMerge
on:
status:
check_suite:
types:
- completed
workflow_run:
workflows:
- AutoMergeTrigger
types:
- completed
branches-ignore:
- main
- bulk
# Prevent concurrent runs, e.g., if labeled right when check_suite finished.
concurrency: >-
automerge-${{
(
github.event_name == 'status' &&
github.event.branches[0].commit.sha
) ||
(
github.event_name == 'check_suite' &&
(
github.event.check_suite.head_sha ||
github.event.check_suite.pull_requests[0].head.sha
)
) ||
(
github.event_name == 'workflow_run' &&
(
github.event.workflow_run.head_sha ||
github.event.workflow_run.pull_requests[0].head.sha
)
)
}}
jobs:
automerge:
runs-on: ubuntu-latest
name: bioconda-bot automerge
if: >-
(
github.event_name == 'status' &&
github.event.state == 'success'
) ||
(
github.event_name == 'check_suite' &&
github.event.check_suite.conclusion == 'success'
) ||
(
github.event_name == 'workflow_run' &&
github.event.workflow_run.conclusion == 'success'
)
container:
image: 'quay.io/bioconda/bot:merge'
steps:
- name: bioconda-bot automerge
env:
BOT_TOKEN: ${{ secrets.GITHUBTOKEN }}
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
QUAY_OAUTH_TOKEN: ${{ secrets.QUAY_OAUTH_TOKEN }}
QUAY_LOGIN: ${{ secrets.QUAY_LOGIN }}
JOB_CONTEXT: ${{ toJson(github) }}
run: bioconda-bot automerge