From 2c088e770fcb625e66e08333b0d99ed36fe4e720 Mon Sep 17 00:00:00 2001 From: andig Date: Sat, 19 Dec 2020 19:31:20 +0100 Subject: [PATCH] Add rebase command --- .github/workflows/rebase.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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 000000000..ca908ffb1 --- /dev/null +++ b/.github/workflows/rebase.yml @@ -0,0 +1,24 @@ +name: Rebase + +on: + issue_comment: + types: [created] + +jobs: + rebase: + name: Rebase + runs-on: ubuntu-latest + if: | + github.event.issue.pull_request != '' + && contains(github.event.comment.body, '/rebase') + && github.event.comment.author_association == 'MEMBER' + + 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 }}