GitHub Action
Job notification by Slack
1.0
Latest version
This action is a part of ghactions-utilities created by trquangvinh.
A GitHub Action to send a message to a Slack channel.
- uses: ghactions-utilities/slack-notification@main
with:
# Description: Slack Webhook URL
# Require: true
# Type: string
webhook-url: ''
# Description: Workflow job status
# Allowed values: success | failure | cancelled
# Require: true
# Type: string
job-status: ''
# Description: Slack message
# Require: false
# Type: string
# If `message` not set, we will use last commit message instead of.
message: Typing the message which you wanna send to Slack
name: Slack Notification
on: push
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Send slack notification
uses: ghactions-utilities/slack-notification@main
with:
webhook-url: ${{ secrets.WEBHOOK_URL }}
job-status: ${{ job.status }}
message: Hello world!