name: Backport
on:
  pull_request_target:
    types:
      - closed
      - labeled
jobs:
  backport:
    runs-on: ubuntu-18.04
    name: Backport
    if: github.event.pull_request.merged
    steps:
      - name: Backport
        uses: tibdex/backport@v1
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
