-
Notifications
You must be signed in to change notification settings - Fork 43
38 lines (33 loc) · 1010 Bytes
/
rebase.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
name: Rebase
on:
repository_dispatch:
types:
- rebase-command
jobs:
rebase:
name: Rebase
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Automatic rebase
uses: giorio94/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.CI_TOKEN }}
- name: Set the reaction for the comment
id: rebase_reaction
run: |
[[ ${{ job.status }} == 'success' ]] && \
echo "reaction=hooray" >> $GITHUB_OUTPUT || \
echo "reaction::confused" >> $GITHUB_OUTPUT
if: always()
- name: Report status as reaction
uses: peter-evans/create-or-update-comment@v2
with:
token: ${{ secrets.CI_TOKEN }}
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
reactions: '${{ steps.rebase_reaction.outputs.reaction }}'
if: always()