diff --git a/.github/workflows/deploy-snapshot.yaml b/.github/workflows/deploy-snapshot.yaml index 8cb5d70d0..a119829a4 100644 --- a/.github/workflows/deploy-snapshot.yaml +++ b/.github/workflows/deploy-snapshot.yaml @@ -37,3 +37,16 @@ jobs: DEPLOYMENT_USER: ${{ secrets.ARTIFACTORY_COMMON_USER }} DEPLOYMENT_PASS: ${{ secrets.ARTIFACTORY_COMMON_PASSWORD }} + - name: 'Slack Notification' + if: failure() + uses: slackapi/slack-github-action@v2.1.1 + with: + webhook: ${{ secrets.SLACK_WEBHOOK }} + webhook-type: incoming-webhook + payload: | + blocks: + - type: "section" + text: + type: "mrkdwn" + text: "⚠️ Deploy Snapshot to SAP Common Artifactory failed! 😬 Please inspect & fix by clicking . Authentication problems can be fixed by updating the `ARTIFACTORY_COMMON_PASSWORD`: Go to , login with user `asa1_fin_cloud_oper`, Edit Profile and Generate an Identity Token. " +