-
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 1.33 KB
/
merge.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
---
on: # yamllint disable-line rule:truthy
workflow_run:
types:
- completed
workflows:
- '🧪 Test Docker images'
name: 📥 Merge pull requests
jobs:
merge:
runs-on: ubuntu-latest
timeout-minutes: 5
if: >
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success' &&
(
(github.actor == 'renovate[bot]' &&
startsWith(github.event.workflow_run.head_commit.message, 'deps(deps)')
) ||
(github.actor == 'lotyp' &&
startsWith(github.event.workflow_run.head_commit.message, 'chore(master)')
)
)
steps:
- name: 🙋♂️ Request reviewer from @way-finder-bot
uses: wayofdev/gh-actions/actions/github/pull-request/[email protected]
with:
reviewer: 'way-finder-bot'
github-token: "${{ secrets.WAY_FINDER_BOT_TOKEN }}"
- name: 🙋♂️ Assign @way-finder-bot
uses: wayofdev/gh-actions/actions/github/pull-request/[email protected]
with:
assignee: 'way-finder-bot'
github-token: "${{ secrets.WAY_FINDER_BOT_TOKEN }}"
- name: ✅ Approve pull request
uses: wayofdev/gh-actions/actions/github/pull-request/[email protected]
with:
github-token: "${{ secrets.WAY_FINDER_BOT_TOKEN }}"