-
-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (37 loc) · 1.47 KB
/
rebase_dispatch.yml
File metadata and controls
43 lines (37 loc) · 1.47 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
40
41
42
43
name: Rebase Pull Request
on:
repository_dispatch:
types: [ rebase-command ]
#concurrency:
# group: "rebase-${{ github.event.number }}"
# cancel-in-progress: true
permissions:
contents: read
jobs:
rebase_pull_request:
name: Rebase Pull Request
runs-on: ubuntu-latest
steps:
- name: Rebase Pull Request
uses: peter-evans/rebase@08cedbbd4eabcd913bf091844614eceddaea4a5d
id: rebase
with:
persist-credentials: false
token: ${{ secrets.GITHUB_TOKEN }}
head: ${{ github.event.client_payload.pull_request.head.label }}
- name: Add 👍 Reaction
if: always() && steps.rebase.outputs.rebased-count == 1
uses: peter-evans/create-or-update-comment@57232238742e38b2ccc27136ce596ccae7ca28b4
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
reaction-type: '+1'
- name: Add 👎 Reaction
if: always() && steps.rebase.outputs.rebased-count != 1
uses: peter-evans/create-or-update-comment@57232238742e38b2ccc27136ce596ccae7ca28b4
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
reaction-type: '-1'