From 1779103a04ab165443e75eb94f07bfb3e59ca566 Mon Sep 17 00:00:00 2001 From: "Babak K. Shandiz" Date: Wed, 16 Jul 2025 21:57:33 +0100 Subject: [PATCH] ci: correct `sed` usage to remove Markdown front matter Signed-off-by: Babak K. Shandiz --- .github/workflows/scripts/spam-detection/generate-sys-prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scripts/spam-detection/generate-sys-prompt.sh b/.github/workflows/scripts/spam-detection/generate-sys-prompt.sh index 99c994c3d..a85f2d6f4 100755 --- a/.github/workflows/scripts/spam-detection/generate-sys-prompt.sh +++ b/.github/workflows/scripts/spam-detection/generate-sys-prompt.sh @@ -107,7 +107,7 @@ for template_file in .github/ISSUE_TEMPLATE/*.md; do _template_content="$(cat "$template_file")" # Remove YAML front matter (everything between the first two --- lines) - _template_content="$(echo "$_template_content" | sed '1,/^---$/d; /^---$/,$d')" + _template_content="$(echo "$_template_content" | sed '/^---$/,/^---$/d')" _escaped_template="$(sed -e 's/^```/\\```/g' <<< "$_template_content" )" _system_prompt="${_system_prompt}