-
Notifications
You must be signed in to change notification settings - Fork 273
68 lines (61 loc) · 1.88 KB
/
automatic-merges.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
67
68
---
name: automatic-merges
on:
workflow_run:
# If new workflows triggered on pull request are added, they should be added to this list
workflows:
- Link Checker
- yaml-lint
- dockerfile-lint
- groovy-tests
- manifests
- python-tests
types: completed
jobs:
automatic-merge-manifests:
if: github.repository == 'opensearch-project/opensearch-build'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: find-triggering-pr
uses: peternied/find-triggering-pr@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: peternied/discerning-merger@v3
if: steps.find-triggering-pr.outputs.pr-number != null
with:
token: ${{ secrets.GITHUB_TOKEN }}
pull-request-number: ${{ steps.find-triggering-pr.outputs.pr-number }}
allowed-authors: |
dependabot
opensearch-trigger-bot
peterzhuamazon
gaiksaya
rishabh6788
zelinh
prudhvigodithi
Divyaasm
dblock
tianleh
peternied
allowed-files: |
manifests/*/*.yml
automatic-merge-new-manifests:
if: github.repository == 'opensearch-project/opensearch-build'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: find-triggering-pr
uses: peternied/find-triggering-pr@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: peternied/discerning-merger@v3
if: steps.find-triggering-pr.outputs.pr-number != null
with:
token: ${{ secrets.GITHUB_TOKEN }}
pull-request-number: ${{ steps.find-triggering-pr.outputs.pr-number }}
allowed-authors: |
opensearch-ci-bot
allowed-files: |
manifests/*/*.yml
jenkins/check-for-build.jenkinsfile