Commit
·
6f08e8b
1
Parent(s):
23d2bde
add rebase.yml
Browse files- .github/workflows/rebase.yml +21 -0
.github/workflows/rebase.yml
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Automatic Rebase
|
2 |
+
# https://github.com/marketplace/actions/automatic-rebase
|
3 |
+
|
4 |
+
on:
|
5 |
+
issue_comment:
|
6 |
+
types: [created]
|
7 |
+
|
8 |
+
jobs:
|
9 |
+
rebase:
|
10 |
+
name: Rebase
|
11 |
+
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
|
12 |
+
runs-on: ubuntu-latest
|
13 |
+
steps:
|
14 |
+
- name: Checkout the latest code
|
15 |
+
uses: actions/checkout@v2
|
16 |
+
with:
|
17 |
+
fetch-depth: 0
|
18 |
+
- name: Automatic Rebase
|
19 |
+
uses: cirrus-actions/[email protected]
|
20 |
+
env:
|
21 |
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|