forked from ethereum/EIPs
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (60 loc) · 1.7 KB
/
auto-review-trigger.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
on:
pull_request_target:
types:
- opened
- reopened
- synchronize
pull_request_review:
types:
- submitted
- dismissed
workflow_dispatch:
inputs:
pr_number:
description: Pull Request Number
type: string
required: true
name: Auto Review Bot Trigger
jobs:
pull-request:
runs-on: ubuntu-latest
name: Pull Request
if: github.event_name == 'pull_request_target'
steps:
- name: Write PR Number
run: echo $PR_NUMBER > pr-number.txt
env:
PR_NUMBER: ${{ github.event.number }}
- name: Save PR Number
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
with:
name: pr-number
path: pr-number.txt
pr-review:
runs-on: ubuntu-latest
name: Review
if: github.event_name == 'pull_request_review' && github.event.review.sender != 'eth-bot' && github.event.review.state == 'approved'
steps:
- name: Write PR Number
run: echo $PR_NUMBER > pr-number.txt
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
- name: Save PR Number
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
with:
name: pr-number
path: pr-number.txt
dispatch:
runs-on: ubuntu-latest
name: Dispatch
if: github.event_name == 'workflow_dispatch'
steps:
- name: Write PR Number
run: echo $PR_NUMBER > pr-number.txt
env:
PR_NUMBER: ${{ inputs.pr_number }}
- name: Save PR Number
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
with:
name: pr-number
path: pr-number.txt