Skip to content

Commit 9a81139

Browse files
Added Slack notification
1 parent a336610 commit 9a81139

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/spec-update.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,16 @@ jobs:
212212
run: |
213213
echo "Client generation failed. Please check the Generate step logs for details."
214214
exit 1
215+
216+
- name: "Slack Notification"
217+
if: failure() && ${{ github.event.inputs.create-pr }}
218+
uses: slackapi/[email protected]
219+
with:
220+
webhook: ${{ secrets.SLACK_WEBHOOK }}
221+
webhook-type: incoming-webhook
222+
payload: |
223+
blocks:
224+
- type: "section"
225+
text:
226+
type: "mrkdwn"
227+
text: "⚠️ Weekly spec update failed! 😬 Please inspect & fix by clicking <https://github.com/SAP/ai-sdk-java/actions/runs/${{ github.run_id }}|here>"

0 commit comments

Comments
 (0)