Skip to content

A Github Action for Slack notifications when a new release is out :)

License

Notifications You must be signed in to change notification settings

amendx/slackbot-release

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

Repository files navigation

Notify Slack on changes

This GitHub Action sends a rich-text notification to your Slack channel when there's a new release in your GitHub repository.

We use mack to render the body of the release as Slack blocks.

Design Master

Usage

Instructions

  • Create a Slack app called "Release Bot"
  • Click Incoming Webhooks and toggle Activate Incoming Webhooks
  • Click Add New Webhook to Workspace
  • Pick the channel the app will post to and then click Authorize
  • Set your SLACK_WEBHOOK_URL to the Webhook URL
  • Create a workflow file
name: Slackbot on release

on:
  release:
    types:
      - created

jobs:
  notify_slack:
    runs-on: ubuntu-latest
    name: Notify Slack on Release
    steps:
      - name: Notify Slack on Releases
        uses: amendx/slackbot-release@1.0.0
        with:
          slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}

Github actions

Developing locally

Install the dependencies

$ npm install

Build the typescript and package it for distribution

$ npm run build && npm run package

Releasing

Cut a new release

$ release-it