hotfix: label action #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
name: Notify on Push | |
permissions: | |
contents: read | |
jobs: | |
notify_on_push: | |
name: Notify on any direct push to `main` | |
if: github.repository == 'nodejs/nodejs.org' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Slack Notification | |
uses: rtCamp/action-slack-notify@c33737706dea87cd7784c687dadc9adf1be59990 # 2.3.2 | |
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.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 }} |