From 40af0940fe324d5fea9ac0dd927553da96ec37dc Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Fri, 19 Dec 2025 11:35:36 +0100 Subject: [PATCH] tools: only report commit validation failure on Slack --- .github/workflows/notify-on-push.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/notify-on-push.yml b/.github/workflows/notify-on-push.yml index e61b7652a51191..ce4180b36ba09f 100644 --- a/.github/workflows/notify-on-push.yml +++ b/.github/workflows/notify-on-push.yml @@ -36,11 +36,12 @@ jobs: with: persist-credentials: false - name: Check commit message + id: commit-check run: npx -q core-validate-commit "$COMMIT" env: COMMIT: ${{ github.event.after }} - name: Slack Notification - if: failure() + if: ${{ failure() && steps.commit-check.conclusion == 'failure' }} uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661 # 2.3.3 env: SLACK_COLOR: '#DE512A'