Skip to content

Commit

Permalink
add slack notification
Browse files Browse the repository at this point in the history
Signed-off-by: Leclerc Clement <[email protected]>
  • Loading branch information
clementleclercRTE committed Oct 15, 2024
1 parent 9260f18 commit 28d04d8
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/snapshot-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,3 +260,26 @@ jobs:
with:
name: pypowsybl-wheel-${{ matrix.config.name }}-${{ matrix.python.name }}
path: dist/*.whl

#SLACK NOTIFICATION ON FAILURE
- name: Slack Notification
uses: 8398a7/action-slack@v3
if: failure()
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,ref,workflow # Ces champs sont déjà inclus dans le texte personnalisé ci-dessous
text: |
:x: *Échec du workflow GitHub Actions*
*Workflow:* ${{ github.workflow }}
*Job:* ${{ github.job }}
*Étape:* ${{ github.action }} <!-- Ceci indiquera l'étape qui a échoué -->
*Détails:*
• Repo: ${{ github.repository }}
• Branche: ${{ github.ref_name }}
• Événement déclencheur: ${{ github.event_name }}
[Voir les logs](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit 28d04d8

Please sign in to comment.