Skip to content

Commit aef8748

Browse files
Merge pull request #53 from superstreamlabs/github-action
GitHub action
2 parents 3341336 + cdff0c8 commit aef8748

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

.github/workflows/release.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,39 @@ jobs:
9797
cd superstream-clients
9898
gh release create $VERSION target/superstream-clients-${VERSION}.jar --generate-notes
9999
100+
- name: Send Slack Notification - Success
101+
if: success() && steps.deployment.outputs.type == 'production'
102+
uses: slackapi/slack-github-action@v1
103+
with:
104+
payload: |
105+
{
106+
"text": "superstream-clients-java v${{ steps.version.outputs.base }} Production Release SUCCESSFUL"
107+
}
108+
env:
109+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
110+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
100111

112+
- name: Send Slack Notification - Failure
113+
if: failure() && steps.deployment.outputs.type == 'production'
114+
uses: slackapi/slack-github-action@v1
115+
with:
116+
payload: |
117+
{
118+
"text": "superstream-clients-java v${{ steps.version.outputs.base }} Production Release FAILED"
119+
}
120+
env:
121+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
122+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
123+
124+
- name: Send Slack Notification - Cancelled
125+
if: cancelled() && steps.deployment.outputs.type == 'production'
126+
uses: slackapi/slack-github-action@v1
127+
with:
128+
payload: |
129+
{
130+
"text": "superstream-clients-java v${{ steps.version.outputs.base }} Production Release CANCELLED"
131+
}
132+
env:
133+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
134+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
101135

superstream-clients/dependency-reduced-pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>ai.superstream</groupId>
55
<artifactId>superstream-clients</artifactId>
66
<name>Superstream Kafka Client Optimizer</name>
7-
<version>2.0.1</version>
7+
<version>2.0.2</version>
88
<description>A Java library that dynamically optimizes Kafka client configuration based on recommendations</description>
99
<url>https://github.com/superstreamlabs/superstream-clients-java</url>
1010
<developers>

superstream-clients/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>ai.superstream</groupId>
88
<artifactId>superstream-clients</artifactId>
9-
<version>2.0.1</version>
9+
<version>2.0.2</version>
1010
<packaging>jar</packaging>
1111

1212
<name>Superstream Kafka Client Optimizer</name>

0 commit comments

Comments
 (0)