@@ -23,19 +23,17 @@ runs:
2323 run : |
2424 echo "Parsing job results..."
2525 failed_list=""
26-
27- # Parse the JSON and extract failed jobs
26+
2827 echo '${{ inputs.failed-jobs }}' | jq -r 'to_entries[] | select(.value.result == "failure") | .key' | while read job; do
2928 case $job in
3029 "check-translations") failed_list="${failed_list}❌ Translation check\n" ;;
3130 "knip") failed_list="${failed_list}❌ Knip analysis\n" ;;
3231 "compile") failed_list="${failed_list}❌ Compile & lint\n" ;;
33- "platform- unit-test") failed_list="${failed_list}❌ Unit tests\n" ;;
32+ "unit-test") failed_list="${failed_list}❌ Unit tests\n" ;;
3433 "integration-test") failed_list="${failed_list}❌ Integration tests\n" ;;
3534 esac
3635 done
37-
38- # Remove trailing newline and save to output
36+
3937 echo "failed_jobs<<EOF" >> $GITHUB_OUTPUT
4038 echo -e "$failed_list" | sed '/^$/d' >> $GITHUB_OUTPUT
4139 echo "EOF" >> $GITHUB_OUTPUT
@@ -47,14 +45,14 @@ runs:
4745 channel : ${{ inputs.channel }}
4846 text : |
4947 🚨 ${{ inputs.workflow-name }} workflow failed on main branch!
50-
48+
5149 Repository: ${{ github.repository }}
5250 Commit: ${{ github.sha }}
5351 Author: ${{ github.actor }}
54-
52+
5553 Failed jobs:
5654 ${{ steps.parse-jobs.outputs.failed_jobs }}
57-
55+
5856 View details: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
5957 env :
60- SLACK_WEBHOOK_URL : ${{ inputs.webhook-url }}
58+ SLACK_WEBHOOK_URL : ${{ inputs.webhook-url }}
0 commit comments