Skip to content

Commit

Permalink
Merge pull request #4500 from nk-87/dev
Browse files Browse the repository at this point in the history
Post announcements to internal Slack channels on releases
  • Loading branch information
nk-87 committed Apr 29, 2022
2 parents c8ada10 + 28074c9 commit 147ccde
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/slack-messages.yml
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 }}

0 comments on commit 147ccde

Please sign in to comment.