diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml new file mode 100644 index 000000000..e7f1fcd95 --- /dev/null +++ b/.github/workflows/backport.yml @@ -0,0 +1,23 @@ +name: backport +on: + pull_request_target: + types: [closed, labeled] + +permissions: + contents: write + pull-requests: write + +jobs: + backport: + name: Backport merged PR + runs-on: ubuntu-latest + if: > + github.event.pull_request.merged == true && + ( + github.event.action == 'closed' || + startsWith(github.event.label.name, 'backport ') + ) + steps: + - uses: actions/checkout@v6 + - name: Create backport pull requests + uses: korthout/backport-action@v3