forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 937 Bytes
/
review.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
name: Review
on: pull_request_target
jobs:
review:
if: startsWith(github.repository, 'Homebrew/')
runs-on: ubuntu-latest
steps:
- name: Label Pull Request
uses: Homebrew/actions/label-pull-requests@master
with:
token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
def: |
[
{
"label": "documentation",
"path": ".*\\.md"
}
]
if: always()
- name: Review Pull Request
id: review
uses: Homebrew/actions/review-cask-pr@master
if: always()
- name: Post Pull Request Review
uses: Homebrew/actions/post-review@master
with:
token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
event: ${{ steps.review.outputs.event }}
body: |
${{ steps.review.outputs.message }}
if: always() && steps.review.outputs.event