You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rebase.yml 639B

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
123456789101112131415161718192021
  1. # https://github.com/marketplace/actions/automatic-rebase
  2. name: Automatic Rebase
  3. on:
  4. issue_comment:
  5. types: [created]
  6. jobs:
  7. rebase:
  8. name: Rebase
  9. if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Checkout the latest code
  13. uses: actions/checkout@v3
  14. with:
  15. token: ${{ secrets.ACTIONS_TOKEN }}
  16. fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
  17. - name: Automatic Rebase
  18. uses: cirrus-actions/rebase@1.7
  19. env:
  20. GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}