2021-09-22 11:52:14 +08:00
|
|
|
name: Automatic Rebase
|
|
|
|
|
2021-02-24 20:24:48 +08:00
|
|
|
on:
|
|
|
|
issue_comment:
|
|
|
|
types: [created]
|
2021-09-22 11:52:14 +08:00
|
|
|
|
2021-02-24 20:24:48 +08:00
|
|
|
jobs:
|
|
|
|
rebase:
|
|
|
|
name: Rebase
|
|
|
|
if: github.event.issue.pull_request != '' && (contains(github.event.comment.body, '/rebase') || contains(github.event.comment.body, '\rebase'))
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Automatic Rebase
|
2021-10-14 22:17:50 +08:00
|
|
|
uses: cirrus-actions/rebase@1.5
|
2021-02-24 20:24:48 +08:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|