From 0fdb86d03d39c90441dbd0ffa293a7a9498e1e6a Mon Sep 17 00:00:00 2001 From: Peefy Date: Thu, 13 Jul 2023 16:21:31 +0800 Subject: [PATCH] ci: add backport action --- .github/workflows/backport.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/backport.yaml diff --git a/.github/workflows/backport.yaml b/.github/workflows/backport.yaml new file mode 100644 index 000000000..57336cfef --- /dev/null +++ b/.github/workflows/backport.yaml @@ -0,0 +1,17 @@ +name: Backport merged pull request +on: + pull_request_target: + types: [closed] +permissions: + contents: write # so it can comment + pull-requests: write # so it can create pull requests +jobs: + backport: + name: Backport pull request + runs-on: ubuntu-latest + # Don't run on closed unmerged pull requests + if: github.event.pull_request.merged + steps: + - uses: actions/checkout@v3 + - name: Create backport pull requests + uses: korthout/backport-action@v1