Skip to content

Single Line Slack Notification

Actions
This action will send a single line notification to Slack
v1.0.0
Latest
Star (0)

Tags

 (2)

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

Single Line Slack Notification is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

This action will send a single line notification to Slack
v1.0.0
Latest

Tags

 (2)

Single Line Slack Notification is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.