diff --git a/.github/workflows/update-filters.yml b/.github/workflows/update-filters.yml index dfb3519f..638763da 100644 --- a/.github/workflows/update-filters.yml +++ b/.github/workflows/update-filters.yml @@ -30,12 +30,12 @@ jobs: run: mkdir -p main/out/filters # ------------------------------- - # Download filter lists (fail-safe) + # Download filter lists (fail-safe, detailed errors) # ------------------------------- - name: Download filter lists run: | set -e - KO=0 + FAILED=() while IFS= read -r line; do [ -z "$line" ] && continue @@ -51,12 +51,16 @@ jobs: if ! curl -fL "$url" -o "main/out/filters/$file"; then echo "FAILED: $url" - KO=1 + FAILED+=("$file") fi done < main/tools/images/update-cromite-org/filters-sources.txt - if [ "$KO" -ne 0 ]; then + if [ ${#FAILED[@]} -ne 0 ]; then echo "One or more downloads failed. Aborting deploy." + echo "Failed files:" + for f in "${FAILED[@]}"; do + echo "- $f" + done exit 1 fi