Skip to content

Commit

Permalink
feat(action): ajout d'un envoi de message à mattermost en cas d'erreur
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgfr authored Apr 24, 2024
1 parent f580796 commit fe60aa4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/fetch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit fe60aa4

Please sign in to comment.