From fa9ea64da714c3584151f7876dc2dedcc40b2f24 Mon Sep 17 00:00:00 2001 From: Hironori Takahashi Date: Fri, 27 Mar 2026 22:12:43 +0900 Subject: [PATCH] fix: avoid heredoc in sync-template.yml to prevent GitLab YAML parse error GitLab's YAML parser interprets unindented EOF as a YAML key, causing pipeline parse failure. Replace heredoc with piped sed/grep. --- .gitlab/sync-template.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.gitlab/sync-template.yml b/.gitlab/sync-template.yml index a2d5348..84c489a 100644 --- a/.gitlab/sync-template.yml +++ b/.gitlab/sync-template.yml @@ -34,15 +34,7 @@ template_sync: INCLUDE="" SYNCIGNORE=$(git show template/main:.templatesyncignore 2>/dev/null || cat .templatesyncignore 2>/dev/null || true) if [ -n "$SYNCIGNORE" ]; then - while IFS= read -r line || [ -n "$line" ]; do - line=$(echo "$line" | sed 's/#.*//' | xargs) - [ -z "$line" ] && continue - case "$line" in - :!*) INCLUDE="$INCLUDE ${line#:!}" ;; - esac - done <