command-rebase.yml 767 B

123456789101112131415161718192021222324252627
  1. # This workflow is provided via the organization template repository
  2. #
  3. # https://github.com/nextcloud/.github
  4. # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
  5. on:
  6. issue_comment:
  7. types: [ created ]
  8. name: Automatic Rebase
  9. jobs:
  10. rebase:
  11. name: Rebase
  12. # On pull requests and if the comment starts with `/rebase`
  13. if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase')
  14. runs-on: ubuntu-latest
  15. steps:
  16. - name: Checkout the latest code
  17. uses: actions/checkout@v2
  18. with:
  19. fetch-depth: 0
  20. - name: Automatic Rebase
  21. uses: cirrus-actions/rebase@1.5
  22. env:
  23. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}