File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,18 +57,22 @@ jobs:
5757 done
5858
5959 echo "================================"
60- if [ $FAIL -neq 0 ]; then
60+ if [ $FAIL -ne 0 ]; then
6161 echo "Validation échouée pour au moins un fichier."
6262 exit 1
6363 else
6464 echo "Tous les fichiers ont été validés avec succès."
6565 fi
6666
67- - name : Notification Discord
68- if : always ()
67+ - name : Notification Discord succès
68+ if : success ()
6969 run : |
7070 curl -H "Content-Type: application/json" \
71- -d "{
72- \"content\": \"Validation RNG : ${{ job.status }} − ${{ github.repository }} − branche ${{ github.ref_name }}\"
73- }" \
74- ${{ secrets.DISCORD_WEBHOOK_URL }}"
71+ -d '{"content":"✅ Validation RNG : success — halex02/boldensele-numerique — branche main"}' \
72+ "${{ secrets.DISCORD_WEBHOOK_URL }}"
73+ - name : Notification Discord échec
74+ if : failure()
75+ run : |
76+ curl -H "Content-Type: application/json" \
77+ -d '{"content":"❌ Validation RNG : failure — halex02/boldensele-numerique — branche main"}' \
78+ "${{ secrets.DISCORD_WEBHOOK_URL }}"
You can’t perform that action at this time.
0 commit comments