Skip to content

Commit

Permalink
chore: add slack notificaitons (#4658)
Browse files Browse the repository at this point in the history
* add slack notificaitons

* add new line

* casing convention
  • Loading branch information
tomfrenken authored Apr 29, 2024
1 parent 4b3ebfd commit 79adc29
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/blackduck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,15 @@ jobs:
DETECT_TIMEOUT: 6000
DETECT_YARN_EXCLUDED_WORKSPACES: test-packages/**
DETECT_YARN_DEPENDENCY_TYPES_EXCLUDED: NON_PRODUCTION
- if: failure() || cancelled()
name: Slack Notify
uses: rtCamp/[email protected]
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_USERNAME: SDK Pipeline Bot
SLACK_TITLE: Blackduck scan ${{ job.status }}
SLACK_MESSAGE: ' '
MSG_MINIMAL: event,actions url
SLACK_COLOR: ${{ job.status }}
SLACK_MSG_AUTHOR: ' '
SLACK_ICON: https://sap.github.io/cloud-sdk/img/logo.png
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,19 @@ jobs:
- run: yarn test:self
- run: yarn test:build-packages
- run: yarn test:type
- if: ${{ github.event_name != 'pull_request' && (failure() || cancelled()) }}
name: Slack Notify
uses: rtCamp/[email protected]
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_USERNAME: SDK Pipeline Bot
SLACK_TITLE: Build tests ${{ job.status }} (${{ matrix.version }})
SLACK_MESSAGE: ' '
MSG_MINIMAL: event,actions url
SLACK_COLOR: ${{ job.status }}
SLACK_MSG_AUTHOR: ' '
SLACK_ICON: https://sap.github.io/cloud-sdk/img/logo.png

checks:
if: inputs.canary-release == false
runs-on: ubuntu-latest
Expand Down Expand Up @@ -77,6 +90,19 @@ jobs:
name: API Doc Check
- run: yarn check:license
name: License Check
- if: ${{ github.event_name != 'pull_request' && (failure() || cancelled()) }}
name: Slack Notify
uses: rtCamp/[email protected]
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_USERNAME: SDK Pipeline Bot
SLACK_TITLE: Build checks ${{ job.status }} (${{ matrix.version }})
SLACK_MESSAGE: ' '
MSG_MINIMAL: event,actions url
SLACK_COLOR: ${{ job.status }}
SLACK_MSG_AUTHOR: ' '
SLACK_ICON: https://sap.github.io/cloud-sdk/img/logo.png

e2e-tests:
if: inputs.canary-release == false
runs-on: ubuntu-latest
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/fosstars-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,15 @@ jobs:
with:
report-branch: fosstars-report
token: '${{ secrets.GH_CLOUD_SDK_JS_ADMIN_WRITE_TOKEN }}'
- if: failure() || cancelled()
name: Slack Notify
uses: rtCamp/[email protected]
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_USERNAME: SDK Pipeline Bot
SLACK_TITLE: Fosstars scan ${{ job.status }}
SLACK_MESSAGE: ' '
MSG_MINIMAL: event,actions url
SLACK_COLOR: ${{ job.status }}
SLACK_MSG_AUTHOR: ' '
SLACK_ICON: https://sap.github.io/cloud-sdk/img/logo.png
12 changes: 12 additions & 0 deletions .github/workflows/memory-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,15 @@ jobs:
working-directory: test-packages/memory-tests/sdk-canary/
- run: yarn ts-node scripts/compare-memory-usage.ts $(cat ./test-packages/memory-tests/sdk-v2/result.txt) $(cat ./test-packages/memory-tests/sdk-canary/result.txt)
name: compare v2 and canary
- if: failure() || cancelled()
name: Slack Notify
uses: rtCamp/[email protected]
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_USERNAME: SDK Pipeline Bot
SLACK_TITLE: Memory tests ${{ job.status }}
SLACK_MESSAGE: ' '
MSG_MINIMAL: event,actions url
SLACK_COLOR: ${{ job.status }}
SLACK_MSG_AUTHOR: ' '
SLACK_ICON: https://sap.github.io/cloud-sdk/img/logo.png

0 comments on commit 79adc29

Please sign in to comment.