ci: correct sed usage to remove Markdown front matter
Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
parent
9aae4a525d
commit
1779103a04
1 changed files with 1 additions and 1 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue