Skip to content

Notifications

These GitHub Actions includes the following functionalities to send notifications when a build or deployment is triggered or completed in SAP Commerce Cloud in the Public Cloud (CCv2) projects.

Webhooks

Microsoft Teams

To send notifications to Microsoft Teams, you need to configure the webhook URL in the GitHub repository secrets. Define the environment variable in the workflow file to use the webhook URL.

1
env:
2
WEBHOOK_URL: ${{ secrets.MS_TEAMS_WEBHOOK_URL }}

And also while using build or deploy action, you can pass the notify input parameter as true to send notifications to Microsoft Teams.

1
- name: Test Action
2
id: build-action
3
uses: sap-cx-actions/commerce-build@v1
4
with:
5
branch: release/v1.0.0
6
buildName: Release v1.0.0
7
notify: true

Sample Notifications

Build Action
Build Triggered

Build Triggered

Build Successful

Build Triggered

Build Failed

Build Triggered

Deploy Action
Deployment Started

Build Triggered

Deployment Successful

Build Triggered

Deployment Failed

Build Triggered

Slack

To send notifications to Slack, you need to configure the webhook URL in the GitHub repository secrets. You need to pass the webhook URL as an environment variable in the workflow file.

1
env:
2
WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

Also, while using build or deploy action, you can pass the notify input parameter as true to send notifications to Slack.

1
- name: Test Action
2
id: deploy-action
3
uses: sap-cx-actions/commerce-deploy@v1
4
with:
5
buildCode: '20240910.1'
6
environmentCode: 'd1'
7
notify: true

Sample Notifications

Build Action
Build Triggered

Build Triggered

Build Successful

Build Triggered

Build Failed

Build Triggered

Deploy Action
Deployment Started

Build Triggered

Deployment Successful

Build Triggered

Deployment Failed

Build Triggered

Email