Skip to content

Commit 4ba7069

Browse files
authored
chore: DevOps Slack Notification for Snapshot Deployment Job (#277)
1 parent 7d2d803 commit 4ba7069

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/deploy-snapshot.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,14 @@ jobs:
3737
env:
3838
DEPLOYMENT_USER: ${{ secrets.ARTIFACTORY_COMMON_USER }}
3939
DEPLOYMENT_PASS: ${{ secrets.ARTIFACTORY_COMMON_PASSWORD }}
40+
41+
- name: "Slack Notification"
42+
if: failure()
43+
uses: slackapi/[email protected]
44+
with:
45+
webhook: ${{ secrets.SLACK_WEBHOOK }}
46+
webhook-type: incoming-webhook
47+
payload: |
48+
{
49+
"text": "⚠️ Snapshot Deployment failed! 😬 Please inspect & fix by clicking <https://github.com/SAP/ai-sdk-java/actions/runs/${{ github.run_id }}|here>"
50+
}

0 commit comments

Comments
 (0)