diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 429bb92..d57952d 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -4,10 +4,13 @@ on: pull_request_target: types: ["closed", "labeled"] +permissions: + pull-requests: write + jobs: backport: name: Backport PR - if: github.event.pull_request.merged == true + if: github.event.pull_request.merged == true && !(contains(github.event.pull_request.labels.*.name, 'backport')) runs-on: ubuntu-latest steps: - name: Backport Action