autorebase.yml 819 Bytes
Newer Older
1
# File managed by web3-bot. DO NOT EDIT.
web3-bot's avatar
web3-bot committed
2
# See https://github.com/protocol/.github/ for details.
ipldbot's avatar
ipldbot committed
3

web3-bot's avatar
web3-bot committed
4
# Allow PRs opened by web3-bot to be rebased by commenting "@web3-bot rebase" on the PR.
ipldbot's avatar
ipldbot committed
5 6 7 8 9 10 11 12 13

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