name: Automatic Rebase | |
on: | |
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: | |
- uses: Wandalen/wretry.action@v1.0.11 | |
name: Checkout | |
with: | |
action: actions/checkout@v3 | |
with: | | |
fetch-depth: 0 | |
token: ${{ secrets.APPLE_PERSONAL_ACCESS_TOKEN }} | |
attempt_limit: 3 | |
attempt_delay: 2000 | |
- name: Automatic Rebase | |
uses: cirrus-actions/rebase@1.4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.APPLE_PERSONAL_ACCESS_TOKEN }} |