autorebase.yml 814 Bytes
Newer Older
ipldbot's avatar
ipldbot committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# Workflow managed by ipldbot. DO NOT EDIT.
# See https://github.com/ipld/.github/ for details.

# Allow PRs opened by ipldbot to be rebased by commenting "@ipldbot rebase" on the PR.

on: 
  issue_comment:
    types: [ created ]
    
name: Automatic Rebase
jobs:
  rebase:
    name: Rebase
    if: github.event.issue.pull_request != '' && github.event.issue.user.login == 'ipldbot' && contains(github.event.comment.body, '@ipldbot rebase')
    runs-on: ubuntu-latest
    steps:
    - name: Checkout the latest code
      uses: actions/checkout@v2
      with:
        fetch-depth: 0
        token: ${{ secrets.IPLDBOT_GITHUB_TOKEN }}
    - name: Automatic Rebase
ipldbot's avatar
ipldbot committed
23
      uses: cirrus-actions/rebase@7cea12ac34ab078fa37e87798d8986185afa7bf2 # v1.4
ipldbot's avatar
ipldbot committed
24 25
      env:
        GITHUB_TOKEN: ${{ secrets.IPLDBOT_GITHUB_TOKEN }}