Skip to content

Commit d61e246

Browse files
committed
tools: validate all commits that are pushed to main
PR-URL: https://github.com/nodejs/node/pull/00000
1 parent 3bbed16 commit d61e246

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/notify-on-push.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,11 @@ jobs:
3434
# cannot use ubuntu-slim here because rtCamp/action-slack-notify is dockerized
3535
runs-on: ubuntu-24.04-arm
3636
steps:
37-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
38-
with:
39-
persist-credentials: false
40-
- name: Check commit message
37+
- name: Validate commits
38+
run: echo "$COMMITS" | npx -q core-validate-commit -
4139
id: commit-check
42-
run: npx -q core-validate-commit "$COMMIT"
4340
env:
44-
COMMIT: ${{ github.event.after }}
41+
COMMITS: ${{ toJSON(github.event.commits) }}
4542
- name: Slack Notification
4643
if: ${{ failure() && steps.commit-check.conclusion == 'failure' }}
4744
uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661 # 2.3.3

0 commit comments

Comments
 (0)