From 1658e53ce2939d412518177fe7e7a7046ef28f72 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Thu, 8 Feb 2024 14:41:13 +0100 Subject: [PATCH] ci: add backport action Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- .github/workflows/backport.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/backport.yml diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml new file mode 100644 index 000000000..bee23b5d1 --- /dev/null +++ b/.github/workflows/backport.yml @@ -0,0 +1,24 @@ +name: backport pr + +on: + pull_request: + types: [labeled, closed] + +jobs: + backport: + name: Backport PR + runs-on: ubuntu-22.04 + steps: + - name: Backport Action + uses: sorenlouv/backport-github-action@f7073a2287aefc1fa12685eb25a712ab5620445c # v9.3.1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + auto_backport_label_prefix: "backport to " + - name: Info log + if: success() + run: | + cat ~/.backport/backport.info.log + - name: Debug log + if: failure() + run: | + cat ~/.backport/backport.debug.log