Skip to content

Commit 6235781

Browse files
author
Kenji Miyake
committed
ci: add automatic-rebase.yaml
Signed-off-by: Kenji Miyake <[email protected]>
1 parent 7c4c396 commit 6235781

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: automatic-rebase
2+
3+
on:
4+
issue_comment:
5+
types:
6+
- created
7+
8+
jobs:
9+
automatic-rebase:
10+
if: ${{ github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase') }}
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Generate token
14+
id: generate-token
15+
uses: tibdex/github-app-token@v1
16+
with:
17+
app_id: ${{ secrets.APP_ID }}
18+
private_key: ${{ secrets.PRIVATE_KEY }}
19+
20+
- name: Check out repository
21+
uses: actions/checkout@v2
22+
with:
23+
token: ${{ steps.generate-token.outputs.token }}
24+
fetch-depth: 0
25+
26+
- name: Automatic rebase
27+
uses: cirrus-actions/[email protected]
28+
env:
29+
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}

0 commit comments

Comments
 (0)