From e316aeaa488d379469c5bd94186a1836b6fa2541 Mon Sep 17 00:00:00 2001 From: Fabian Kramm Date: Fri, 2 Aug 2024 16:55:48 +0200 Subject: [PATCH] chore: fix backport.yaml --- .github/workflows/backport.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/backport.yaml b/.github/workflows/backport.yaml index 9a18aefe5..2fa841097 100644 --- a/.github/workflows/backport.yaml +++ b/.github/workflows/backport.yaml @@ -2,12 +2,12 @@ name: Automatic backport action on: pull_request_target: - types: ["labeled"] + types: ["labeled", "closed"] jobs: backport: name: Backport PR - if: "!(contains(github.event.pull_request.labels.*.name, 'backport'))" + if: github.event.pull_request.merged == true && !(contains(github.event.pull_request.labels.*.name, 'backport')) runs-on: ubuntu-latest steps: - name: Backport Action