backport.yml 755 B

12345678910111213141516171819202122232425262728
  1. name: Backport
  2. on:
  3. pull_request_target:
  4. types: [closed, labeled]
  5. jobs:
  6. backport:
  7. permissions:
  8. contents: write
  9. pull-requests: write
  10. name: Backport Pull Request
  11. if: >
  12. github.repository_owner == 'neovim' && (
  13. github.event_name == 'pull_request_target' &&
  14. github.event.pull_request.merged
  15. )
  16. runs-on: ubuntu-latest
  17. steps:
  18. - uses: actions/checkout@v3
  19. with:
  20. # required to find all branches
  21. fetch-depth: 0
  22. ref: ${{ github.event.pull_request.head.sha }}
  23. - name: Create backport PRs
  24. uses: zeebe-io/backport-action@v0.0.8
  25. with:
  26. github_token: ${{ secrets.GITHUB_TOKEN }}
  27. github_workspace: ${{ github.workspace }}