Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
bell

GitHub Action

Slatify

v1.7.0

Slatify

bell

Slatify

Slack Notification Action

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Slatify

uses: lazy-actions/slatify@v1.7.0

Learn more about this action in lazy-actions/slatify

Choose a version

Slatify

GitHub release (latest by date) GitHub

This is Slack Notification for GitHub Actions.
Generated from actions/javascript-template.

Feature

  • Notify the result of GitHub Actions

How to use

First of all, you need to set GitHub secrets for SLACK_WEBHOOK that is Incoming Webhook URL.
You can customize the following parameters:

with parameter required/optional default description
type required N/A The result of GitHub Actions job
This parameter value must contain success, fail or cancel
We recommend using ${{ job.status }}
job_name required N/A Means slack notification title
url required N/A Slack Incoming Webhooks URL
Please specify this key or SLACK_WEBHOOK environment variable
※SLACK_WEBHOOK will be deprecated
icon_emoji optional github Slack icon
username optional Github Actions Slack username
channel optional Use Slack Incoming Webhook configuration Slack channel name

Please refer action.yml for more details.

Example

- name: Slack Notification
  uses: homoluctus/slatify@master
  if: always()
  with:
    type: ${{ job.status }}
    job_name: '*Lint Check*'
    channel: '#random'
    url: ${{ secrets.SLACK_WEBHOOK }}

Slack UI Example

Success Case

github actions success pattern

Failure Case

github actions failure pattern

Cancel Case

github actions cancel pattern

Preview

Notification Preview

Contribute

  1. Fork this repository
  2. Pull your repository in local machine
  3. Update original repository
  4. Checkout "develop" branch based "remotes/origin/develop" branch
  5. Work on "develop" branch
  6. Push you changes to your repository
  7. Create a new Pull Request

LICENSE

The MIT License (MIT)