jmertic / slack-release-notifier

Apache License 2.0
0 stars 0 forks source link

Slack Release Notifier

Provides rich notifications to a specific Slack channel for releases

Usage

name: Publish Release Notice to Slack

on:
  release:
    types:
      - released

jobs:
  publish:
    runs-on: ubuntu-latest
    timeout-minutes: 5

    steps:
    - name: Notify Slack
      id: slack
      with:
        # Project Name
        project_name: "My Project"
        # Slack Bot Token; follow instructions to get one at
        # https://api.slack.com/tutorials/tracks/getting-a-token
        # with scopes 'channels:read' and 'chat:write'
        slack_bot_token: ${{ secrets.SLACK_BOT_TOKEN }}
        # Slack Channel to post to
        # Note: Each channel listed must have the Slack App connected to the
        # Slack Bot Token above added to it. More information at
        # https://slack.com/help/articles/360001537467-Guide-to-apps-in-Slack#find-apps
        slack_channel: "#release-announcements"
        # Project Logo
        project_logo: "URL TO PROJECT LOGO"
      uses: jmertic/slack-release-notifier@main