From aa347dc7c5b50f74f449e522605f6f1a967a039f Mon Sep 17 00:00:00 2001 From: Ankita Khera Date: Wed, 7 Jan 2026 14:25:37 -0800 Subject: [PATCH] only do the generic comment if a prior failure has not occurred --- .github/workflows/pr-validation.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index 821caa9c27500..c0acf158a329b 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -363,7 +363,13 @@ jobs: }); - name: Comment on failure - if: failure() + if: | + failure() && + steps.check-invoker-access.outcome != 'failure' && + steps.check-invoker-org.outcome != 'failure' && + steps.pr-author.outcome != 'failure' && + steps.pr-author-org.outcome != 'failure' && + steps.parse-commit.outcome != 'failure' uses: actions/github-script@v7 with: script: |