diff --git a/.github/workflows/fetch.yml b/.github/workflows/fetch.yml index 9f478519e2..20d4341c60 100644 --- a/.github/workflows/fetch.yml +++ b/.github/workflows/fetch.yml @@ -76,3 +76,13 @@ jobs: GIT_COMMITTER_NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.SOCIALGROOVYBOT_NPM_TOKEN }} + + - name: Create the Mattermost Message + if: failure() + run: | + echo "{\"text\":\"La mise à jour du dépôt fiches-vdd (Service Public) a échoué : ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}\"}" > mattermost.json + + - uses: mattermost/action-mattermost-notify@master + if: failure() + env: + MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}