rebase.yml 788 B

123456789101112131415161718192021222324252627
  1. name: Automatic Rebase
  2. on:
  3. issue_comment:
  4. jobs:
  5. rebase:
  6. name: Rebase
  7. if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '@jellyfin-bot rebase') && github.event.comment.author_association == 'MEMBER'
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Notify as seen
  11. uses: peter-evans/create-or-update-comment@v1.4.5
  12. with:
  13. token: ${{ secrets.GH_TOKEN }}
  14. comment-id: ${{ github.event.comment.id }}
  15. reactions: '+1'
  16. - name: Checkout the latest code
  17. uses: actions/checkout@v2
  18. with:
  19. token: ${{ secrets.GH_TOKEN }}
  20. fetch-depth: 0
  21. - name: Automatic Rebase
  22. uses: cirrus-actions/rebase@1.4
  23. env:
  24. GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}