diff --git a/.github/workflows/rebase.yaml b/.github/workflows/rebase.yaml new file mode 100644 index 0000000000..e39162ef8b --- /dev/null +++ b/.github/workflows/rebase.yaml @@ -0,0 +1,20 @@ +name: rebase pull request +on: + push: + branches: + - master +jobs: + rebase: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/rebase@v1 + with: + base: master + - name: Send failure message + uses: peter-evans/create-or-update-comment@v1 + if: ${{ failure() }} + with: + issue-number: ${{ github.event.issue.number || github.event.number }} + body: | + Automatic rebasing for this PR has failed. You'll need to manually + rebase against the default branch.