tools: do not flag force push as invalid message

Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/65700
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
This commit is contained in:
Antoine du Hamel committed 2026-09-09 23:40:27 +02:00
1 parent 48ecb16909
commit 8d4f0cf264
1 file changed
+3
+3
View File
@@ -32,6 +32,9 @@ jobs:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
validateCommitMessage:
# If a commit is force-pushed out of the main branch, the `commits` array is
# empty and there are no checks to run.
if: github.event.commits[0]
name: Notify on Push on `main` with invalid message
# cannot use ubuntu-slim here because rtCamp/action-slack-notify is dockerized
runs-on: ubuntu-24.04-arm