@@ -941,57 +941,3 @@ jobs:
941941 curl -X POST "${{ secrets.EMAILNOTIFICATION_LOGICAPP_URL_TA }}" \
942942 -H "Content-Type: application/json" \
943943 -d "$EMAIL_BODY" || echo "Failed to send existing URL test failure notification"
944-
945- - name : Generate Notification Job Summary
946- if : always()
947- run : |
948- echo "## 📧 Notification Job Summary" >> $GITHUB_STEP_SUMMARY
949- echo "" >> $GITHUB_STEP_SUMMARY
950- echo "| Notification Type | Condition | Status | Sent |" >> $GITHUB_STEP_SUMMARY
951- echo "|------------------|-----------|--------|------|" >> $GITHUB_STEP_SUMMARY
952-
953- # Check quota failure notification
954- if [[ "${{ needs.deploy.result }}" == "failure" && "${{ needs.deploy.outputs.QUOTA_FAILED }}" == "true" ]]; then
955- echo "| **Quota Failure** | Deploy failed due to quota | ❌ Quota Issue | ✅ Sent |" >> $GITHUB_STEP_SUMMARY
956- else
957- echo "| **Quota Failure** | Deploy failed due to quota | ✅ No Quota Issues | ⏸️ Not Needed |" >> $GITHUB_STEP_SUMMARY
958- fi
959-
960- # Check deployment failure notification
961- if [[ "${{ needs.deploy.result }}" == "failure" && "${{ needs.deploy.outputs.QUOTA_FAILED }}" != "true" ]]; then
962- echo "| **Deployment Failure** | Deploy failed (non-quota) | ❌ Deploy Failed | ✅ Sent |" >> $GITHUB_STEP_SUMMARY
963- else
964- echo "| **Deployment Failure** | Deploy failed (non-quota) | ✅ No Issues | ⏸️ Not Needed |" >> $GITHUB_STEP_SUMMARY
965- fi
966-
967- # Check success notification
968- SUCCESS_CONDITION="${{ needs.deploy.result == 'success' && (needs.e2e-test.result == 'skipped' || needs.e2e-test.outputs.TEST_SUCCESS == 'true') }}"
969- if [[ "$SUCCESS_CONDITION" == "true" ]]; then
970- echo "| **Success** | Deploy success + tests pass/skip | ✅ All Good | ✅ Sent |" >> $GITHUB_STEP_SUMMARY
971- else
972- echo "| **Success** | Deploy success + tests pass/skip | ❌ Conditions Not Met | ⏸️ Not Needed |" >> $GITHUB_STEP_SUMMARY
973- fi
974-
975- # Check test failure notification
976- TEST_FAIL_CONDITION="${{ needs.deploy.result == 'success' && needs.e2e-test.result != 'skipped' && needs.e2e-test.outputs.TEST_SUCCESS != 'true' }}"
977- if [[ "$TEST_FAIL_CONDITION" == "true" ]]; then
978- echo "| **Test Failure** | Deploy success but tests fail | ❌ Tests Failed | ✅ Sent |" >> $GITHUB_STEP_SUMMARY
979- else
980- echo "| **Test Failure** | Deploy success but tests fail | ✅ No Test Issues | ⏸️ Not Needed |" >> $GITHUB_STEP_SUMMARY
981- fi
982-
983- echo "" >> $GITHUB_STEP_SUMMARY
984- echo "### 📋 Pipeline Results Summary" >> $GITHUB_STEP_SUMMARY
985- echo "- **Deploy Job**: ${{ needs.deploy.result == 'success' && '✅ Success' || needs.deploy.result == 'failure' && '❌ Failed' || '⏸️ Skipped' }}" >> $GITHUB_STEP_SUMMARY
986- echo "- **E2E Test Job**: ${{ needs.e2e-test.result == 'success' && '✅ Success' || needs.e2e-test.result == 'failure' && '❌ Failed' || '⏸️ Skipped' }}" >> $GITHUB_STEP_SUMMARY
987- echo "- **Test Results**: ${{ needs.e2e-test.outputs.TEST_SUCCESS == 'true' && '✅ Passed' || needs.e2e-test.outputs.TEST_SUCCESS == 'false' && '❌ Failed' || '⏸️ Not Run' }}" >> $GITHUB_STEP_SUMMARY
988- echo "- **Quota Status**: ${{ needs.deploy.outputs.QUOTA_FAILED == 'true' && '❌ Quota Failed' || '✅ Quota OK' }}" >> $GITHUB_STEP_SUMMARY
989- if [[ "${{ needs.deploy.result }}" == "skipped" && "${{ github.event.inputs.existing_webapp_url }}" != "" ]]; then
990- echo "- **Mode**: Existing URL (deployment skipped)" >> $GITHUB_STEP_SUMMARY
991- echo "- **Target URL**: ${{ github.event.inputs.existing_webapp_url }}" >> $GITHUB_STEP_SUMMARY
992- fi
993- echo "" >> $GITHUB_STEP_SUMMARY
994- echo "### 🔗 Links" >> $GITHUB_STEP_SUMMARY
995- echo "- **Pipeline Run**: [View Details](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})" >> $GITHUB_STEP_SUMMARY
996- echo "- **Branch**: ${{ env.BRANCH_NAME }}" >> $GITHUB_STEP_SUMMARY
997- echo "- **Trigger**: ${{ github.event_name }}" >> $GITHUB_STEP_SUMMARY
0 commit comments