Skip to content

Beautiful notification to slack with mention of the person who made the commit

License

Notifications You must be signed in to change notification settings

7olstoy/slack-notification-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

slack-notification-action

This action will alert your slack channel/PM with repo/branch/runner log and mention you.

Screen

Requirements

First of all you need to create your slack app with these items and use them in with section of the action.

slack-url

Go to your slack app (Your Apps->Features->Incoming Webhooks) and add new webhook URL for your workspace. After you can use this URL in actions.

slack-oauth-token

The action requires an OAuth token token for your slack workspace with users:read.email(doc) permission.

Usage

See action.yml

Basic:

steps:
- uses: actions/checkout@v2
- uses: 7olstoy/slack-notification-action@main
  with:
    slack-url: ${{ secrets.SLACK_TEST_CHANNEL_URL }}
    slack-oauth-token: ${{ secrets.SLACK_BOT_OAUTH_TOKEN }}

Advanced:

jobs:
  shellcheck:
    name: Lint with Shellcheck
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Run ShellCheck
      uses: ludeeus/action-shellcheck@master
      with:
        format: tty
    - uses: 7olstoy/slack-notification-action@main
      with:
        slack-url: ${{ secrets.SLACK_TEST_CHANNEL_URL }}
        slack-oauth-token: ${{ secrets.SLACK_BOT_OAUTH_TOKEN }}
      if: failure()

License

The scripts and documentation in this project are released under the MIT License

About

Beautiful notification to slack with mention of the person who made the commit

Resources

License

Stars

Watchers

Forks