Skip to content

Commit 0a3af39

Browse files
authored
ci: Post release notification to Slack (#580)
1 parent 61ac1aa commit 0a3af39

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

.github/workflows/publish.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout the repo
16-
uses: actions/checkout@85e6279
16+
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
1717
with:
1818
ref: ${{ github.event.release.target_commitish }}
1919
- name: Setup Java
@@ -33,3 +33,32 @@ jobs:
3333
MAVEN_PASSWORD: ${{ secrets.OSS_PASSWORD }}
3434
MAVEN_GPG_PASSPHRASE: ${{ secrets.SIGNING_PASSWORD }}
3535
run: mvn -e --no-transfer-progress --batch-mode deploy -P release-sign-artifacts
36+
notify-release:
37+
runs-on: ubuntu-latest
38+
name: Notify Release
39+
strategy:
40+
matrix:
41+
url: [SLACK_WEBHOOK_ASK_DEVREL_URL, SLACK_WEBHOOK_DEVREL_TOOLING_URL, SLACK_WEBHOOK_DEVREL_PRIVATE_URL]
42+
steps:
43+
- name: Send to Slack channels
44+
uses: slackapi/slack-github-action@79ad3a9d89410e5b0d961a0e7422f18c62c81bfb
45+
with:
46+
webhook: ${{ secrets[matrix.url]}}
47+
webhook-type: incoming-webhook
48+
errors: true
49+
payload: |
50+
blocks:
51+
- type: "header"
52+
text:
53+
type: "plain_text"
54+
text: ":initial_external_notification_sent: Version ${{ github.event.release.name }} of the Java Server SDK has been released."
55+
- type: "section"
56+
text:
57+
type: "mrkdwn"
58+
text: "${{ github.event.release.body }}"
59+
emoji: true
60+
- type: "divider"
61+
- type: "section"
62+
text:
63+
type: "mrkdwn"
64+
text: "You can view the full change log <${{github.event.release.html_url }}|here>."

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
![CodeQL](https://github.com/Vonage/vonage-java-sdk/actions/workflows/codeql.yml/badge.svg)
77
[![codecov](https://codecov.io/gh/vonage/vonage-java-sdk/branch/main/graph/badge.svg)](https://codecov.io/gh/vonage/vonage-java-sdk)
88
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/Vonage/vonage-java-sdk/badge)](https://scorecard.dev/viewer/?uri=github.com/Vonage/vonage-java-sdk)
9-
![SLOC](https://sloc.xyz/github/vonage/vonage-java-sdk)
9+
![SLOC](https://sloc.xyz/github/vonage/vonage-java-sdk?)
1010
[![Snyk](https://snyk.io/test/github/vonage/vonage-java-sdk/badge.svg)](https://snyk.io/test/github/vonage/vonage-java-sdk)
1111
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.1%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md)
1212
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE.txt)

0 commit comments

Comments
 (0)