File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,18 @@ jobs:
1414 with :
1515 workflow : ${{ github.event.workflow_run.workflow_id }}
1616 run_id : ${{ github.event.workflow_run.id }}
17- name : deployment-logs-*
17+ name : deployment-logs-
1818 path : all_deployment_logs
19+ search_artifacts : true
1920
2021 - name : Process logs
2122 run : |
2223 mkdir -p processed_logs
24+ if [ -z "$(find all_deployment_logs -type f -name "*.txt" 2>/dev/null)" ]; then
25+ echo "No log files found to process" > processed_logs/error_message.txt
26+ exit 0
27+ fi
28+
2329 find all_deployment_logs -type f -name "*.txt" | xargs cat > processed_logs/combined_logs.txt
2430 grep -i "error\|exception\|failed" processed_logs/combined_logs.txt > processed_logs/error_summary.txt || true
2531 grep -i "warning" processed_logs/combined_logs.txt > processed_logs/warnings_summary.txt || true
You can’t perform that action at this time.
0 commit comments