From b17523e9b564d31094a34b6608cfc66777c81feb Mon Sep 17 00:00:00 2001 From: omkarkhatavkar Date: Mon, 22 Jan 2024 23:05:29 +0530 Subject: [PATCH] addtional check before create issue for failed cherrypick --- .github/workflows/auto_cherry_pick.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto_cherry_pick.yml b/.github/workflows/auto_cherry_pick.yml index 324b0f1e861..d9602c74f57 100644 --- a/.github/workflows/auto_cherry_pick.yml +++ b/.github/workflows/auto_cherry_pick.yml @@ -97,10 +97,16 @@ jobs: labels: ["AutoMerge_Cherry_Picked"] }) + - name: Check if cherrypick pr is created + uses: juliangruber/find-pull-request-action@v1 + id: fpr + with: + branch: ${{ matrix.label }} + ## Failure Logging to issues and GChat Group - name: Create Github issue on cherrypick failure id: create-issue - if: ${{ always() && steps.cherrypick.outcome != 'success' && startsWith(matrix.label, '6.') && matrix.label != github.base_ref }} + if: ${{ always() && steps.fpr.outputs.number != '' && steps.cherrypick.outcome != 'success' && startsWith(matrix.label, '6.') && matrix.label != github.base_ref }} uses: dacbd/create-issue-action@main with: token: ${{ secrets.CHERRYPICK_PAT }}