Skip to content

Commit

Permalink
fix: action pour notifier sur mattermost
Browse files Browse the repository at this point in the history
  • Loading branch information
m-maillot committed May 16, 2024
1 parent b19b5b2 commit ab2cef3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/schedule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ jobs:
CDTN_API_URL: https://code-du-travail-numerique-dev.dev.fabrique.social.gouv.fr
ELASTICSEARCH_URL: ${{ secrets.ELASTICSEARCH_URL }}
API_KEY: ${{ secrets.API_KEY }}
- name: Create the Mattermost Message
if: failure()
run: |
echo "{\"text\":\"La synchro des données Matomo 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 }}
PAYLOAD: |-
{
"text": "La synchro des données Matomo a échoué, veuillez relancer le job : ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}",
}

0 comments on commit ab2cef3

Please sign in to comment.