Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amendx/slackbot-release

A Github Action for Slack notifications when a new release is out :)
https://github.com/amendx/slackbot-release

action devops github-actions integration-slack release-automation release-notes slack slack-api step

Last synced: 15 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://github.com/tryfabric/mack) to render the body of the release as Slack blocks.

Design Master

# Usage

## Instructions

- [Create a Slack app](https://api.slack.com/apps/new) 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

```yaml
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/[email protected]
with:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
```

Github actions

## Developing locally
Install the dependencies

```bash
$ npm install
```
Build the typescript and package it for distribution

```bash
$ npm run build && npm run package
```

## Releasing

Cut a new release

```bash
$ release-it
```