From 15c668b5abbe26d1646becc07ee6df8b4d70aa29 Mon Sep 17 00:00:00 2001
From: Ryan Laurie <30528226+iethree@users.noreply.github.com>
Date: Tue, 5 Mar 2024 11:13:26 -0700
Subject: [PATCH] Dont alert slack on failing backport branches (#39589)

---
 .github/workflows/rerun-workflows.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/rerun-workflows.yml b/.github/workflows/rerun-workflows.yml
index 8ac2a7b569a..3aa07381e17 100644
--- a/.github/workflows/rerun-workflows.yml
+++ b/.github/workflows/rerun-workflows.yml
@@ -45,7 +45,7 @@ jobs:
                 repo: context.repo.repo,
                 run_id: ${{ github.event.workflow_run.id }},
               });
-            } else {
+            } else if (!BRANCH.includes('backport-')) {
               // notify slack of repeated failure
               const { WebClient } = require('@slack/web-api');
               const slack = new WebClient('${{ secrets.SLACK_BOT_TOKEN }}');
-- 
GitLab