mirror of https://github.com/nodejs/node.git
27 lines
1.1 KiB
YAML
27 lines
1.1 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- main
|
|
|
|
name: Notify on Force Push
|
|
jobs:
|
|
slackNotification:
|
|
name: Slack Notification
|
|
if: github.repository == 'nodejs/node' && github.event.forced
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Slack Notification
|
|
uses: rtCamp/action-slack-notify@master
|
|
env:
|
|
SLACK_COLOR: '#DE512A'
|
|
SLACK_ICON: https://github.com/nodejs.png?size=48
|
|
SLACK_TITLE: ${{ github.actor }} force-pushed to ${{ github.ref }}
|
|
SLACK_MESSAGE: |
|
|
A commit was force-pushed to <https://github.com/${{ github.repository }}/tree/${{ github.repository.default_branch }}|${{ github.repository }}@${{ github.repository.default_branch }}> 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 }}
|