Skip to content

brainfish-ai/slack-notify-release

 
 

Repository files navigation

Slack notify release GitHub action

A simple GitHub action to post a Slack message when a new version is released.

Inputs

The following inputs briefly explained here are fully declared and documented in the action.yaml:

  • github_token [Required] - GitHub token
  • slack_token [Required] - Slack token
  • channel_id [Required] - Channel ID where to post (shown in 'channel details', e.g. 'C03AA0A0A3A')
  • project_name [Required] - Project name to display
  • repo_owner_name [Optional] - Repository owner name
  • repo_name [Optional] - Repository name

Examples

Run this action on new tag push or new release!

on:
  push:
    tags:
      - "v1*"
jobs:
  examplejob:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
          ref: main
      - name: Notify new release on Slack
        uses: brainfish-ai/slack-notify-release
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          slack_token: ${{ secrets.SLACK_TOKEN }}
          channel_id: C03AA0A0A3A
          project_name: My Project

Build the action

Install dependencies

npm i

Build the action

npm run build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%