From 85603e36201a3fa4ad74ec434e155e9edc8eb45f Mon Sep 17 00:00:00 2001 From: Yang Libin Date: Sun, 27 Dec 2020 11:45:13 +0800 Subject: [PATCH] chore: add rebase action --- .github/workflows/rebase.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/rebase.yml diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml new file mode 100644 index 0000000..157070d --- /dev/null +++ b/.github/workflows/rebase.yml @@ -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 }}