From 5b6bf4161a5f585343c351ca5bd057056d6a8081 Mon Sep 17 00:00:00 2001 From: Florian Necas Date: Fri, 6 Sep 2024 12:33:15 +0200 Subject: [PATCH] chore: update backport bot --- .github/workflows/backport.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 6a7477e..309bb53 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -2,11 +2,16 @@ name: Automatic backport action on: pull_request_target: - types: ["closed"] + types: ["closed", "labeled"] + +permissions: + contents: write # so it can comment + pull-requests: write # so it can create pull requests jobs: backport: name: Backport PR + if: github.event.pull_request.merged == true && !(contains(github.event.pull_request.labels.*.name, 'backport')) runs-on: ubuntu-latest steps: - name: Backport Action @@ -21,4 +26,4 @@ jobs: - name: Debug log if: ${{ failure() }} - run: cat ~/.backport/backport.debug.log \ No newline at end of file + run: cat ~/.backport/backport.debug.log