Add rebase command

This commit is contained in:
andig 2020-12-19 19:31:20 +01:00
parent b30bb4e77e
commit 2c088e770f

24
.github/workflows/rebase.yml vendored Normal file
View file

@ -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 }}