2021-09-22 11:52:14 +08:00
|
|
|
name: Automatic Rebase
|
|
|
|
|
2021-12-05 11:37:54 +08:00
|
|
|
on:
|
2021-02-24 20:24:48 +08:00
|
|
|
issue_comment:
|
|
|
|
types: [created]
|
2021-09-22 11:52:14 +08:00
|
|
|
|
2022-04-11 11:15:26 +08:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-02-24 20:24:48 +08:00
|
|
|
jobs:
|
|
|
|
rebase:
|
2022-04-11 11:15:26 +08:00
|
|
|
permissions:
|
|
|
|
contents: write # for cirrus-actions/rebase to push code to rebase
|
|
|
|
pull-requests: read # for cirrus-actions/rebase to get info about PR
|
2021-02-24 20:24:48 +08:00
|
|
|
name: Rebase
|
|
|
|
if: github.event.issue.pull_request != '' && (contains(github.event.comment.body, '/rebase') || contains(github.event.comment.body, '\rebase'))
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-05 11:55:52 +08:00
|
|
|
- uses: actions/checkout@v4
|
2021-02-24 20:24:48 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Automatic Rebase
|
2022-12-23 17:59:32 +08:00
|
|
|
uses: cirrus-actions/rebase@1.8
|
2021-02-24 20:24:48 +08:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|