From fc53877f747ded83636ceb1637d98fd027069fd6 Mon Sep 17 00:00:00 2001 From: jamshale Date: Wed, 14 Aug 2024 13:18:19 -0700 Subject: [PATCH] WIP Signed-off-by: jamshale --- .github/workflows/create-release-pr.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/create-release-pr.yaml b/.github/workflows/create-release-pr.yaml index 79815c7b9..3cce7d9d3 100644 --- a/.github/workflows/create-release-pr.yaml +++ b/.github/workflows/create-release-pr.yaml @@ -351,9 +351,9 @@ jobs: # Update the release notes with the upgraded plugins. # For replacing with the sed command we need to double escape the newline and tab characters. details=$(printf '\n### Plugins Upgraded For ACA-Py Release %s \n - ' "$release_version") - double_escape_details=$(printf '\\n### Plugins Upgraded For ACA-Py Release %s \\n - ' "$release_version") + double_escape_details=$(printf '\\n### Plugins Upgraded For ACA-Py Release %s \\n*' "$release_version") - # For replacing the first occurence of ' - ' with the details + # For replacing the first occurence of '*' with the details count=${#upgraded_plugins[*]} for i in $(seq 0 "$(("$count" - 2))" ); do @@ -363,8 +363,8 @@ jobs: details=$(printf '%s %s \n' "$details" "${upgraded_plugins[$count - 1]}") double_escape_details=$(printf '%s %s \n' "$double_escape_details" "${upgraded_plugins[$count - 1]}") - # Replace the first occurence of ' - ' with the details - sed -i "0,/\s\-\s/s// - $(printf '%s ' ${double_escape_details})/" RELEASES.md + # Replace the first occurence of '*' with the details + sed -i "0,/*/s// - $(printf '%s ' ${double_escape_details})/" RELEASES.md # Replace the release version with the release tag sed -i "0,/v$release_version/{s/v$release_version/v$tag_version/}" RELEASES.md