debug: add temporary debug output to check markdown table format
This commit is contained in:
7
.github/workflows/weekly-metrics-discord.yml
vendored
7
.github/workflows/weekly-metrics-discord.yml
vendored
@@ -48,6 +48,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# Parse the metrics from the generated markdown files
|
# Parse the metrics from the generated markdown files
|
||||||
if [ -f "issue_metrics.md" ]; then
|
if [ -f "issue_metrics.md" ]; then
|
||||||
|
echo "DEBUG: issue_metrics.md content:"
|
||||||
|
head -20 issue_metrics.md
|
||||||
|
echo "DEBUG: Lines with 'Time to first response':"
|
||||||
|
grep "Time to first response" issue_metrics.md || echo "No matches found"
|
||||||
|
echo "DEBUG: Lines with 'Time to close':"
|
||||||
|
grep "Time to close" issue_metrics.md || echo "No matches found"
|
||||||
|
|
||||||
# Extract key metrics using grep/awk
|
# Extract key metrics using grep/awk
|
||||||
AVG_TIME_TO_FIRST_RESPONSE=$(grep "Time to first response" issue_metrics.md | awk -F'|' '{print $3}' | xargs || echo "N/A")
|
AVG_TIME_TO_FIRST_RESPONSE=$(grep "Time to first response" issue_metrics.md | awk -F'|' '{print $3}' | xargs || echo "N/A")
|
||||||
AVG_TIME_TO_CLOSE=$(grep "Time to close" issue_metrics.md | awk -F'|' '{print $3}' | xargs || echo "N/A")
|
AVG_TIME_TO_CLOSE=$(grep "Time to close" issue_metrics.md | awk -F'|' '{print $3}' | xargs || echo "N/A")
|
||||||
|
|||||||
Reference in New Issue
Block a user