Skip to content

Commit 60f98be

Browse files
committed
Add rebase.yml rebase action
Signed-off-by: Joseph Mattello <[email protected]>
1 parent 9203f98 commit 60f98be

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/rebase.yml

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

0 commit comments

Comments
 (0)