Skip to content

Commit 0bc45ea

Browse files
committed
chore: add rebase action
1 parent 023afbf commit 0bc45ea

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/rebase.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Automatic Rebase
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
jobs:
8+
rebase:
9+
name: Rebase
10+
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout the latest code
14+
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
- name: Automatic Rebase
18+
uses: cirrus-actions/rebase@1.4
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)