add rebase workflow for PRs (#2786)

This commit is contained in:
Denys Vuika 2022-11-17 13:45:38 +00:00 committed by GitHub
parent 8ae6e477b2
commit 0158dba041
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -0,0 +1,18 @@
on:
issue_comment:
types: [created]
name: Automatic Rebase
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.3.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}