From 0a57ae7296d3424feb9d6ea809c81dfea5022cb3 Mon Sep 17 00:00:00 2001 From: Shenoy Pratik Date: Thu, 10 Aug 2023 13:21:34 -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 9537ddeb..6472a968 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