Skip to content

Commit

Permalink
fix(e2e): correction de la version du plugin pour notifier sur matter…
Browse files Browse the repository at this point in the history
…most (#5897)

* fix(e2e): correction de la version du plugin pour notifier sur mattermost

* fix(e2e): correction de la notif mattermost sur le check des SDR urls

* fix(e2e): correction de la notif mattermost sur la verif prod
  • Loading branch information
m-maillot committed May 17, 2024
1 parent a5f0655 commit 33322cf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check-sdr-url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
- name: Test SDR urls
run: |
jq ".[].url" ./packages/code-du-travail-frontend/src/data/services-de-renseignement.json | uniq | xargs -n 1 wget --spider
- name: Create the Mattermost Message
if: failure()
run: |
echo "{\"text\":\"Une ou plusieurs URLs des services de renseignement ne sont plus valides : ${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": "Une ou plusieurs URLs des services de renseignement ne sont plus valides : ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}",
}
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
path: |
packages/code-du-travail-frontend/cypress/screenshots
- name: Send message to mattermost when done
uses: mattermost/action-mattermost-notify@v2.0.0
uses: mattermost/action-mattermost-notify@master
if: always()
with:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
Expand All @@ -43,7 +43,7 @@ jobs:
"text": "Les tests automatiques e2e sont terminés: **${{ job.status }}**. Détails : ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}",
}
- name: Ping the team when failed
uses: mattermost/action-mattermost-notify@v2.0.0
uses: mattermost/action-mattermost-notify@master
if: failure()
with:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/verification-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ jobs:
curl -sSfL https://code.travail.gouv.fr/sitemap.xml -o sitemap.xml && grep -q "https://code.travail.gouv.fr/" sitemap.xml
- run: |
curl -sSfLI https://code.travail.gouv.fr/sitemap.xml | grep -q "content-type: text/xml"
- name: Create the Mattermost Message
if: failure()
run: |
echo "{\"text\":\"Erreur sur le robots.txt ou sitemap.xml 😱😱😱😱😱😱😱😱 ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} (cc: @max @victorz @carolinebda @martial)\"}" > mattermost.json
- uses: mattermost/action-mattermost-notify@master
if: failure()
with:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
PAYLOAD: |-
{
"text": "Erreur sur le robots.txt ou sitemap.xml 😱😱😱😱😱😱😱😱 ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} (cc: @max @victorz @carolinebda @martial)",
}

0 comments on commit 33322cf

Please sign in to comment.