-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4500 from nk-87/dev
Post announcements to internal Slack channels on releases
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Release Slack Message | ||
on: | ||
release: | ||
types: [published] | ||
|
||
env: | ||
MESSAGE: "Redpanda release ${{ github.event.release.tag_name }} has been published: ${{ github.event.release.html_url }}" | ||
|
||
jobs: | ||
post-slack-message: | ||
name: Post Slack Message | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: "Post to internal #releases channel" | ||
id: internal_releases | ||
uses: slackapi/slack-github-action@v1.18.0 | ||
with: | ||
channel-id: ${{ secrets.INTERNAL_RELEASES_SLACK_CHANNEL }} | ||
slack-message: ${{ env.MESSAGE }} | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.VBOTBUILDOVICH_SLACK_BOT_TOKEN }} | ||
|
||
- name: "Post to internal #general channel" | ||
id: internal_general | ||
uses: slackapi/slack-github-action@v1.18.0 | ||
with: | ||
channel-id: ${{ secrets.INTERNAL_GENERAL_SLACK_CHANNEL }} | ||
slack-message: ${{ env.MESSAGE }} | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.VBOTBUILDOVICH_SLACK_BOT_TOKEN }} |