⚠️ Moved: This action has migrated to linuxfoundation/slack-release-notifier. This repository is archived and will no longer receive updates.Update your workflow YAML file:
- uses: jmertic/slack-release-notifier@742b241f04f0711d1bec63e69de84e82ddb2d21e # 20261117 + uses: linuxfoundation/slack-release-notifier@4dcaff18c5356db866557089a4b234c1d7e49c55 # 20261117
Provides rich notifications to a specific Slack channel for releases
name: Publish Release Notice to Slack
on:
release:
types:
# You can add `prereleased` and/or `published` to trigger for release candidates and other release types
# See https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#release
- 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://docs.slack.dev/authentication/tokens/
# 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@742b241f04f0711d1bec63e69de84e82ddb2d21e # 20261117