-
Notifications
You must be signed in to change notification settings - Fork 151
44 lines (44 loc) · 1.05 KB
/
pr-reviewer.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
name: Review PR
run-name: Review PR ${{ inputs.pr }} - ${{ inputs.url }}
on:
workflow_dispatch:
inputs:
pr:
description: "PR number"
required: true
url:
description: "Web URL"
required: true
workflow_call:
inputs:
pr:
description: "PR number"
type: string
required: true
url:
description: "Web URL"
type: string
required: true
secrets:
ENCRYPTION_SECRET:
required: true
SITE_FETCHER_API_KEY:
required: true
permissions:
contents: read
issues: write
pull-requests: write
jobs:
update:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.x
- run: yarn
- run: node automation/pr-validator ${{ inputs.url }} ${{ inputs.pr }}
env:
ENCRYPTION_SECRET: ${{ secrets.ENCRYPTION_SECRET }}
SITE_FETCHER_API_KEY: ${{ secrets.SITE_FETCHER_API_KEY }}
BOT_GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}