forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.19 KB
/
Copy pathautomerge.yml
File metadata and controls
46 lines (44 loc) · 1.19 KB
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
name: Automerge
on:
push:
branches:
- debug-automerge
schedule:
- cron: '0 * * * *'
workflow_run:
workflows:
- CI
types:
- completed
pull_request_review:
types:
- submitted
pull_request_target:
types:
- unlabeled
- ready_for_review
workflow_dispatch:
inputs:
pull-request:
description: Pull Request Number
required: false
jobs:
automerge:
if: >
startsWith(github.repository, 'Homebrew/') &&
(
(
github.event.review.state == 'approved' &&
github.event.pull_request.base.repo.full_name == github.event.pull_request.head.repo.full_name
) || github.event_name != 'pull_request_review'
)
runs-on: ubuntu-latest
steps:
- uses: reitermarkus/automerge@d623acb9c9156bf956cd9145457c976b51881de0
with:
token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
merge-method: squash
squash-title: true
do-not-merge-labels: 'do not merge,awaiting maintainer feedback,awaiting user reply'
pull-request: ${{ github.event.inputs.pull-request }}
dry-run: ${{ github.ref == 'refs/heads/debug-automerge' }}