Skip to content

Commit 601220a

Browse files
Update ErrorsLog.yml
1 parent 8decbf8 commit 601220a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ErrorsLog.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)