Skip to content

speechanddebate/action-slack-notify

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

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Single Line Slack Notification - GitHub Action

This is a fork of rtCamp/action-slack-notify with the following changes:

  • Changes the message to a single line with only core details
  • Removes most configuration options to keep it simple
  • Removes support for Vault
  • Updates Go dependencies

Usage

You can use this action after any other action. Here is an example setup of this action:

  1. Create a .github/workflows/slack-notify.yml file in your GitHub repo.
  2. Add the following code to the slack-notify.yml file.
  3. Only SLACK_WEBHOOK is required, the only available customization options are below. SLACK_ICON defaults to ❌ so you probably want to set that to something else based on whether the run is successful or not.
on: push
name: Slack Notification Demo
jobs:
  slackNotification:
    name: Slack Notification
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - name: Slack Notification
      uses: speechanddebate/action-slack-notify@master
      env:
        SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
        SLACK_CHANNEL: "#tech-updates"
        SLACK_USERNAME: "Github Actions"
        SLACK_ICON: ":white_check_mark:"
  1. Create SLACK_WEBHOOK secret using GitHub Action's Secret. You can generate a Slack incoming webhook token from here.

Credits

Based on: rtCamp/action-slack-notify

License

MIT © 2022 rtCamp

About

GitHub Action for sending a notification to a Slack channel

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 51.6%
  • Dockerfile 27.1%
  • Shell 21.3%