Skip to content

Commit 4e9c09d

Browse files
authored
Create rebase.yml
1 parent 1270b34 commit 4e9c09d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/rebase.yml

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

0 commit comments

Comments
 (0)