From 1b3b808675f1b4c5754682936f379bbac4556275 Mon Sep 17 00:00:00 2001 From: Shenoy Pratik Date: Thu, 10 Aug 2023 11:38:13 -0700 Subject: [PATCH] Update backport CI, add PR merged condition Signed-off-by: Shenoy Pratik --- .github/workflows/backport.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 9537ddebda..6472a968d8 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -7,6 +7,7 @@ on: jobs: backport: + if: github.event.pull_request.merged == true runs-on: ubuntu-latest permissions: contents: write @@ -26,5 +27,4 @@ jobs: with: github_token: ${{ steps.github_app_token.outputs.token }} head_template: backport/backport-<%= number %>-to-<%= base %> - labels_template: "<%= JSON.stringify([...labels, 'autocut']) %>" - failure_labels: "failed backport" + failure_labels: backport-failed