Skip to content

Commit d36558f

Browse files
committed
Update validation-rng.yml
1 parent 2444f90 commit d36558f

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/validation-rng.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff 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 }}"

0 commit comments

Comments
 (0)