From 0fddc3bf0531f4c3693806e81ec3b2a2ee6eaf46 Mon Sep 17 00:00:00 2001 From: cflmy Date: Fri, 28 Aug 2026 12:18:52 +0800 Subject: [PATCH] fix(ci): skip public mq.md files without # main MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Avoid locale-sensitive find -name/?? matching for 工具.mq.md; only run demos that define # main so import helpers are skipped on all runners. Co-authored-by: Cursor --- .github/workflows/pages.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 9bae56a..84259ec 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -28,9 +28,12 @@ jobs: - name: Build & export site run: | cargo build --release - # Skip import helpers (no `# main`); exclude both EN/ZH names. - find public -name '*.mq.md' ! -path '*/structure/import/utils.mq.md' ! -path '*/structure/import/??.mq.md' -print0 \ - | xargs -0 -n1 ./target/release/marqdo run + # Skip import helpers and any demo without `# main` (locale-safe; no UTF-8 names in find). + set -e + while IFS= read -r -d '' f; do + grep -q '^# main' "$f" || continue + ./target/release/marqdo run "$f" + done < <(find public -name '*.mq.md' -print0) ./target/release/marqdo view output public -o public - name: Verify site shape