-
Notifications
You must be signed in to change notification settings - Fork 3.7k
39 lines (36 loc) · 1.21 KB
/
package.yml
File metadata and controls
39 lines (36 loc) · 1.21 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
name: Package test
on:
pull_request:
paths:
- 'repository/**'
issue_comment:
types: [created] # run when comment added with "📦" or "/review"
jobs:
# run package test on pull request event (but not on drafts)
package:
if: ${{ github.event_name == 'pull_request' && !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- name: Diff and review changed/added packages
uses: kaste/st_package_reviewer/gh_action@ad89510c574e97d92cfd4d9e0f5c9029394f5c94
with:
pr: ${{ github.event.pull_request.html_url }}
file: repository.json
# run package test on demand via comment on the pr
package_comment:
if: >-
${{
github.event_name == 'issue_comment' &&
github.event.issue.pull_request != null &&
(
contains(github.event.comment.body, '📦') ||
contains(github.event.comment.body, '/review')
)
}}
runs-on: ubuntu-latest
steps:
- name: Diff and review changed/added packages
uses: kaste/st_package_reviewer/gh_action@ad89510c574e97d92cfd4d9e0f5c9029394f5c94
with:
pr: ${{ github.event.issue.pull_request.html_url }}
file: repository.json