mirror of
https://github.com/nodejs/node.git
synced 2025-12-28 07:50:41 +00:00
Some checks failed
Test and upload documentation to artifacts / build-docs (push) Waiting to run
Linters / lint-addon-docs (push) Waiting to run
Linters / lint-cpp (push) Waiting to run
Linters / format-cpp (push) Waiting to run
Linters / lint-js-and-md (push) Waiting to run
Linters / lint-nix (push) Waiting to run
Linters / lint-py (push) Waiting to run
Linters / lint-yaml (push) Waiting to run
Linters / lint-sh (push) Waiting to run
Linters / lint-codeowners (push) Waiting to run
Linters / lint-pr-url (push) Waiting to run
Linters / lint-readme (push) Waiting to run
Notify on Push / Notify on Force Push on `main` (push) Waiting to run
Notify on Push / Notify on Push on `main` with invalid message (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
License update / update_license (push) Has been cancelled
Find inactive collaborators / find (push) Has been cancelled
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>
57 lines
2.6 KiB
YAML
57 lines
2.6 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
name: Notify on Push
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
notifyOnForcePush:
|
|
name: Notify on Force Push on `main`
|
|
if: github.repository == 'nodejs/node' && github.event.forced
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Slack Notification
|
|
uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661 # 2.3.3
|
|
env:
|
|
SLACK_COLOR: '#DE512A'
|
|
SLACK_ICON: https://github.com/nodejs.png?size=48
|
|
SLACK_TITLE: ${{ github.actor }} force-pushed to ${{ github.ref }}
|
|
SLACK_MESSAGE: |
|
|
<!here> A commit was force-pushed to <https://github.com/${{ github.repository }}/tree/${{ github.ref_name }}|${{ github.repository }}@${{ github.ref_name }}> by <https://github.com/${{ github.actor }}|${{ github.actor }}>
|
|
|
|
Before: <https://github.com/${{ github.repository }}/commit/${{ github.event.before }}|${{ github.event.before }}>
|
|
After: <https://github.com/${{ github.repository }}/commit/${{ github.event.after }}|${{ github.event.after }}>
|
|
SLACK_USERNAME: nodejs-bot
|
|
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
|
|
|
validateCommitMessage:
|
|
name: Notify on Push on `main` with invalid message
|
|
if: github.repository == 'nodejs/node'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
|
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() && steps.commit-check.conclusion == 'failure' }}
|
|
uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661 # 2.3.3
|
|
env:
|
|
SLACK_COLOR: '#DE512A'
|
|
SLACK_ICON: https://github.com/nodejs.png?size=48
|
|
SLACK_TITLE: Invalid commit was pushed to ${{ github.ref }}
|
|
SLACK_MESSAGE: |
|
|
<!here> A commit with an invalid message was pushed to <https://github.com/${{ github.repository }}/tree/${{ github.ref_name }}|${{ github.repository }}@${{ github.ref_name }}> by <https://github.com/${{ github.actor }}|${{ github.actor }}>.
|
|
|
|
Before: <https://github.com/${{ github.repository }}/commit/${{ github.event.before }}|${{ github.event.before }}>
|
|
After: <https://github.com/${{ github.repository }}/commit/${{ github.event.after }}|${{ github.event.after }}>
|
|
SLACK_USERNAME: nodejs-bot
|
|
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|