Skip to content

Commit 5f4d5f8

Browse files
authored
Fix Slack Notifications (#216)
1 parent 2987f66 commit 5f4d5f8

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

.github/workflows/continuous-integration.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,9 @@ jobs:
7474
if: ${{ github.ref == 'refs/heads/main' && failure() }}
7575
uses: slackapi/[email protected]
7676
with:
77+
webhook: ${{ secrets.SLACK_WEBHOOK }}
78+
webhook-type: incoming-webhook
7779
payload: |
7880
{
7981
"text": "🚨 Main Build Failed! 😬 Please inspect & fix by clicking <https://github.com/SAP/ai-sdk-java/actions/runs/${{ github.run_id }}|here>"
8082
}
81-
env:
82-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
83-
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

.github/workflows/e2e-test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ jobs:
7171
if: failure()
7272
uses: slackapi/[email protected]
7373
with:
74+
webhook: ${{ secrets.SLACK_WEBHOOK }}
75+
webhook-type: incoming-webhook
7476
payload: |
7577
{
7678
"text": "⚠️ End-to-end tests failed! 😬 Please inspect & fix by clicking <https://github.com/SAP/ai-sdk-java/actions/runs/${{ github.run_id }}|here>"
7779
}
78-
env:
79-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
80-
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
80+

.github/workflows/fosstars-report.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,9 @@ jobs:
7777
if: failure()
7878
uses: slackapi/[email protected]
7979
with:
80+
webhook: ${{ secrets.SLACK_WEBHOOK }}
81+
webhook-type: incoming-webhook
8082
payload: |
8183
{
8284
"text": "⚠️ OWASP Dependency check failed! 😬 Please inspect & fix by clicking <https://github.com/SAP/ai-sdk-java/actions/runs/${{ github.run_id }}|here>"
8385
}
84-
env:
85-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
86-
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

0 commit comments

Comments
 (0)