| 1 | name: Backport |
| 2 | on: |
| 3 | pull_request_target: |
| 4 | types: |
| 5 | - closed |
| 6 | - labeled |
| 7 | jobs: |
| 8 | backport: |
| 9 | name: Backport |
| 10 | runs-on: ubuntu-latest |
| 11 | if: > |
| 12 | github.event.pull_request.merged |
| 13 | && ( |
| 14 | github.event.action == 'closed' |
| 15 | || ( |
| 16 | github.event.action == 'labeled' |
| 17 | && contains(github.event.label.name, 'backport-to-') |
| 18 | ) |
| 19 | ) |
| 20 | steps: |
| 21 | - uses: next-actions/backport@master |
| 22 | with: |
| 23 | user: sssd-bot |
| 24 | token: ${{ secrets.BOT_TOKEN }} |