Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit 0b2cbfb

Browse files
author
[Partner] Alexander Sokolov
committed
slack release notifications
1 parent bfdcfb4 commit 0b2cbfb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,15 @@ jobs:
4949
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
5050
# GitHub sets this automatically
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
-
53+
name: Slack notification for releases
54+
uses: ravsamhq/notify-slack-action@v2
55+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
56+
with:
57+
status: ${{ job.status }}
58+
token: ${{ secrets.GITHUB_TOKEN }}
59+
notification_title: "*{workflow}* {status_message} in <{repo_url}|{repo}>"
60+
message_format: "{emoji} Build ${{ github.ref_name }} has {status_message}"
61+
footer: "Linked Repo <{repo_url}|{repo}> | <{workflow_url}|View Workflow>"
62+
env:
63+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)