Procházet zdrojové kódy

ci: simplify artifact patterns and add verbose curl output

Remove hardcoded version patterns in artifact downloads to make workflow more flexible
Add verbose flag to curl command for better debugging
TheWildJames před 8 měsíci
rodič
revize
197729ca9a
1 změnil soubory, kde provedl 4 přidání a 6 odebrání
  1. 4 6
      .github/workflows/main.yml

+ 4 - 6
.github/workflows/main.yml

@@ -379,15 +379,13 @@ jobs:
       uses: actions/download-artifact@v5
       with:
         path: ./downloaded-artifacts
-        pattern: '6.1.145-android14-2025-09-TheWildJames-AnyKernel3'
-      continue-on-error: true
+        pattern: '*-TheWildJames-AnyKernel3'
 
     - name: Download Normal Artifacts
       uses: actions/download-artifact@v5
       with:
         path: ./downloaded-artifacts
-        pattern: '6.1.145-android14-2025-09-Normal-AnyKernel3'
-      continue-on-error: true
+        pattern: '*-Normal-AnyKernel3'
 
     - name: Prepare Artifacts for DM
       run: |
@@ -409,7 +407,7 @@ jobs:
         for dir in "${anykernel_dirs[@]}"; do
           artifact_name=$(basename "$dir")
           echo "Zipping $artifact_name for DM..."
-          (cd "$dir" && zip -r -q -9 "$GITHUB_WORKSPACE/${artifact_name}.zip" .) &
+          (cd "$dir" && zip -r -q -9 "$GITHUB_WORKSPACE/${artifact_name}.zip" ./*) &
         done
         wait
 
@@ -469,7 +467,7 @@ jobs:
         for file in "${files[@]}"; do
           if [ -f "$file" ]; then
             echo "Sending $file to Telegram DM..."
-            curl -F chat_id="${{ secrets.TELEGRAM_USER_ID }}" \
+            curl -v -F chat_id="${{ secrets.TELEGRAM_USER_ID }}" \
                  -F document=@"$file" \
                  -F caption="📦 **Build**: $(basename "$file")" \
                  -F parse_mode="Markdown" \