advanced-java/.github/workflows/rebase.yml

21 lines
482 B
YAML
Raw Normal View History

2020-12-27 11:45:13 +08:00
name: Automatic Rebase
2021-02-20 20:13:24 +08:00
on:
2020-12-27 11:45:13 +08:00
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:
2021-02-20 20:13:24 +08:00
- 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 }}