From fe60aa4e099746f35b7067d701f67f4cd2bb8cdc Mon Sep 17 00:00:00 2001 From: Maxime Golfier <25312957+maxgfr@users.noreply.github.com> Date: Wed, 24 Apr 2024 10:25:04 +0200 Subject: [PATCH] =?UTF-8?q?feat(action):=20ajout=20d'un=20envoi=20de=20mes?= =?UTF-8?q?sage=20=C3=A0=20mattermost=20en=20cas=20d'erreur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/fetch.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/fetch.yml b/.github/workflows/fetch.yml index c8b54b49ac..f2f9e98f1b 100644 --- a/.github/workflows/fetch.yml +++ b/.github/workflows/fetch.yml @@ -75,3 +75,12 @@ 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\":\"Le fetch des fiches-vdd a échoué, veuillez relancer le job : ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}\"}" > mattermost.json + - uses: mattermost/action-mattermost-notify@master + if: failure() + with: + MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}