mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
3
.github/workflows/notify-on-push.yml
vendored
3
.github/workflows/notify-on-push.yml
vendored
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user