Skip to content

Commit 24c08ad

Browse files
committed
remove debug
1 parent ebc794d commit 24c08ad

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ jobs:
108108
local type="$4"
109109
110110
if [ -z "$pid" ]; then
111-
echo "🔍 DEBUG: Skipping '$name' - no project_id"
111+
echo "⚠️ Skipping '$name' - no project_id"
112112
return
113113
fi
114114
115115
# Normalize type
116116
[ "$type" != "required" ] && type="optional"
117117
118-
echo "🔍 DEBUG: Adding dependency: name='$name', project_id='$pid', url='$url', type='$type'"
118+
echo " Adding dependency: name='$name', project_id='$pid', url='$url', type='$type'"
119119
120120
jq --arg name "$name" --arg pid "$pid" --arg url "$url" --arg type "$type" \
121121
'. += [{"name": $name, "project_id": $pid, "url": $url, "dependency_type": $type}]' \
@@ -141,22 +141,18 @@ jobs:
141141
current_project_id=""
142142
current_url=""
143143
current_type="optional"
144-
echo "🔍 DEBUG: Found section: '$current_name'"
145144
146145
# Check for Project ID
147146
elif [[ $line =~ \*\*Project[[:space:]]ID\*\*:[[:space:]]+(.+)$ ]]; then
148147
current_project_id="${BASH_REMATCH[1]}"
149-
echo "🔍 DEBUG: Project ID: '$current_project_id'"
150148
151149
# Check for URL
152150
elif [[ $line =~ \*\*URL\*\*:[[:space:]]+(.+)$ ]]; then
153151
current_url="${BASH_REMATCH[1]}"
154-
echo "🔍 DEBUG: URL: '$current_url'"
155152
156153
# Check for Type
157154
elif [[ $line =~ \*\*Type\*\*:[[:space:]]+(.+)$ ]]; then
158155
current_type="${BASH_REMATCH[1]}"
159-
echo "🔍 DEBUG: Type: '$current_type'"
160156
fi
161157
done < DEPENDENCIES.md
162158
@@ -165,22 +161,14 @@ jobs:
165161
save_dependency "$current_name" "$current_project_id" "$current_url" "$current_type"
166162
fi
167163
168-
echo "🔍 DEBUG: Finished parsing DEPENDENCIES.md"
169-
170-
echo "🔍 DEBUG: Checking final JSON output"
171-
echo "🔍 DEBUG: File exists: $([ -f "$DEPENDENCIES_OUT" ] && echo "yes" || echo "no")"
172-
echo "🔍 DEBUG: File size: $(wc -c < "$DEPENDENCIES_OUT" 2>/dev/null || echo "0") bytes"
173-
174164
LENGTH=$(jq -r 'length' "$DEPENDENCIES_OUT" 2>/dev/null || echo "0")
175-
echo "🔍 DEBUG: JSON array length: $LENGTH"
176165
177166
if [ -s "$DEPENDENCIES_OUT" ] && [ "$LENGTH" -gt 0 ]; then
178167
echo "DEPENDENCIES=$DEPENDENCIES_OUT" >> $GITHUB_OUTPUT
179168
echo "✅ Extracted dependencies"
180169
echo "Dependencies content:"
181170
cat "$DEPENDENCIES_OUT"
182171
else
183-
echo "🔍 DEBUG: No valid dependencies found or file is empty"
184172
echo "⚠️ No valid dependencies found in DEPENDENCIES.md, using empty dependencies"
185173
echo "[]" > "$DEPENDENCIES_OUT"
186174
echo "DEPENDENCIES=$DEPENDENCIES_OUT" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)