tools: only report commit validation failure on Slack

PR-URL: https://github.com/nodejs/node/pull/61124
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Xuguang Mei <meixuguang@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Antoine du Hamel
2025-12-21 11:45:18 +01:00
committed by GitHub
parent 9d27d9a393
commit 607a741941

View File

@@ -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'