diff --git a/.gitea/workflows/test-skins.yml b/.gitea/workflows/test-skins.yml index 2182f4d..e76c87c 100644 --- a/.gitea/workflows/test-skins.yml +++ b/.gitea/workflows/test-skins.yml @@ -221,9 +221,17 @@ jobs: echo "" done + echo "" + echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" + # Exit with error if files are missing if [ $total_missing -gt 0 ]; then + echo "❌ SUMMARY: Workflow failed due to $total_missing missing markdown file(s)" + echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" exit 1 + else + echo "✅ SUMMARY: All checks passed!" + echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" fi - name: Check for broken image references @@ -247,7 +255,7 @@ jobs: current_skin="${BASH_REMATCH[1]}" fi # Check for image links - if [[ "$line" =~ !\[.*\]\(([^)]+\.(png|jpg|jpeg|gif|webp|svg)) ]]; then + if [[ "$line" =~ !\[.*\]\(([^\)]+\.(png|jpg|jpeg|gif|webp|svg)) ]]; then link="${BASH_REMATCH[1]}" # Skip external URLs if [[ ! "$link" =~ ^https?:// ]]; then