File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 6161 - name : Build quickstart packages
6262 run : |
6363 echo "📦 Building sample packages..."
64-
65- ARTIFACT_COUNT=0
66-
64+
6765 find . -maxdepth 2 -type d -path "./*/*" | grep -v ".git" | while read sample_dir; do
6866 if [ -d "$sample_dir" ] && [ -f "$sample_dir/README.md" ]; then
6967 CATEGORY=$(basename $(dirname "$sample_dir"))
@@ -110,14 +108,20 @@ jobs:
110108 if [ -f "artifacts/${ZIP_NAME}.zip" ]; then
111109 SIZE=$(du -h "artifacts/${ZIP_NAME}.zip" | cut -f1)
112110 echo "✅ Created: ${ZIP_NAME}.zip ($SIZE)"
113- ARTIFACT_COUNT=$((ARTIFACT_COUNT + 1))
114111 else
115112 echo "❌ Failed to create: ${ZIP_NAME}.zip"
116113 fi
117114 fi
118115 done
119116
117+ # Count artifacts AFTER the loop completes
118+ ARTIFACT_COUNT=$(ls artifacts/*.zip 2>/dev/null | wc -l)
120119 echo "ARTIFACT_COUNT=$ARTIFACT_COUNT" >> $GITHUB_ENV
120+ echo "📊 Total artifacts built: $ARTIFACT_COUNT"
121+
122+ # Debug: List what was actually created
123+ echo "📦 Artifacts created:"
124+ ls -la artifacts/ || echo "No artifacts directory or files found"
121125
122126 - name : Security scan artifacts
123127 run : |
You can’t perform that action at this time.
0 commit comments