add slack message on cron fail (#8633)

This commit is contained in:
Eugenio Romano
2023-06-07 15:31:39 +02:00
committed by GitHub
parent 2ea82946fd
commit 826cdf52b9

View File

@@ -490,3 +490,12 @@ jobs:
- name: workflow success - name: workflow success
run: exit 0 run: exit 0
if: ${{ contains(needs.*.result, 'success') }} if: ${{ contains(needs.*.result, 'success') }}
- uses: slackapi/slack-github-action@v1.23.0
name: Nofify QA hxp-studio-testing failure
if: ${{ contains(needs.*.result, 'failure') }}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
with:
channel-id: 'C016SMNNL8L' #guild-channel
slack-message: "Warning: The daily ADF cronjob failed\n Workflow run : <https://github.com/Alfresco/alfresco-ng2-components/actions/runs/${{ github.run_id }}"