forked from ethereum/EIPs
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1.05 KB
/
ci-rerun-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
on:
issue_comment:
types:
- created
name: Continuous Integration Re-Trigger
jobs:
trigger:
runs-on: ubuntu-latest
name: Trigger
steps:
- name: Trigger
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0
if: github.event.issue.pull_request && contains(github.event.comment.body, '@eth-bot rerun')
with:
script: |
let pr = await github.rest.pulls.get({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.issue.number
});
await github.rest.pulls.update({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.issue.number,
body: '[RETRIGGER]\n' + pr.data.body
});
await github.rest.pulls.update({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.issue.number,
body: pr.data.body
});