ci: correct sed usage to remove Markdown front matter

Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
Babak K. Shandiz 2025-07-16 21:57:33 +01:00
parent 9aae4a525d
commit 1779103a04
No known key found for this signature in database
GPG key ID: 9472CAEFF56C742E

View file

@ -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}