From a514ec50ae6e7deb3c52586acc7efb69bdfb9a6a Mon Sep 17 00:00:00 2001 From: Alina Buzachis Date: Fri, 17 Jan 2025 11:12:51 +0100 Subject: [PATCH] Test 4 Signed-off-by: Alina Buzachis --- .github/workflows/check_backports.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check_backports.yml b/.github/workflows/check_backports.yml index 487b9b86c82..6d4da7265f2 100644 --- a/.github/workflows/check_backports.yml +++ b/.github/workflows/check_backports.yml @@ -8,11 +8,11 @@ on: jobs: check_patchback_comment: if: > - github.event.issue.pull_request.merged == true + github.event.issue.pull_request.merged == true && + contains(github.event.comment.body, '💔 cherry-picking failed') runs-on: ubuntu-latest steps: - name: Add Label for Backport Failure run: | - echo ${{ github.event.issue_comment.comment }} gh pr edit ${{ github.event.issue.number }} -R ${{ github.repository }} --add-label 'backport-failed'