chore: add rebase action

This commit is contained in:
Yang Libin 2020-12-27 11:45:13 +08:00 committed by GitHub
parent a2b93f88d4
commit 85603e3620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
.github/workflows/rebase.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Automatic Rebase
on:
issue_comment:
types: [created]
jobs:
rebase:
name: Rebase
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
runs-on: ubuntu-latest
steps:
- name: Checkout the latest code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Automatic Rebase
uses: cirrus-actions/rebase@1.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}