From 27932aa78fbe845c09d6b88c6fa16ed272b04a0b Mon Sep 17 00:00:00 2001 From: Jitendra Yejare Date: Tue, 23 May 2023 12:10:52 +0530 Subject: [PATCH] AutoCherrypick of Merged PRs (#925) --- .github/workflows/auto_cherry_pick.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto_cherry_pick.yml b/.github/workflows/auto_cherry_pick.yml index 050bbdb7..84ce3b90 100644 --- a/.github/workflows/auto_cherry_pick.yml +++ b/.github/workflows/auto_cherry_pick.yml @@ -4,7 +4,7 @@ name: auto_cherry_pick_commits on: pull_request_target: types: - - closed + - [closed, labeled] # Github & Parent PR Env vars env: @@ -16,6 +16,7 @@ jobs: # Pre-Requisites for Auto Cherrypicking find-the-parent-prt-comment: + if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'CherryPick') name: Find & Save last PRT comment of Parent PR runs-on: ubuntu-latest outputs: