Skip to content

Commit

Permalink
Merge pull request #201 from jamshale/release-improvements
Browse files Browse the repository at this point in the history
Improve release notes formatting
  • Loading branch information
jamshale authored Apr 30, 2024
2 parents f7a2b0f + 54e4443 commit ac7a170
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/create-release-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -317,18 +317,18 @@ jobs:
# Update the release notes with the upgraded plugins
details=$(printf "Plugins upgraded this release: \n\t\t - ")
details=$(printf 'Plugins upgraded this release: \\n\\t\\t - ')
plugin_count=${#upgraded_plugins[@]}
for i in $(seq 0 "$(("$plugin_count" - 2))" );
do
details=$(printf '%s %s \n\t\t - ' "$details" "${upgraded_plugins[$i]}")
details=$(printf '%s %s \\n\\t\\t - ' "$details" "${upgraded_plugins[$i]}")
done
# details=$(printf '%s %s \n' "$details" "${upgraded_plugins[-1]}")
details=$(printf '%s %s \\n' "$details" "${upgraded_plugins[-1]}")
# Replace the first occurence of ' - ' with the details
sed -i "0,/\s\-\s/s// - ${details}/" RELEASES.md
sed -i "0,/\s\-\s/s// - $(printf '%s ' ${details})/" RELEASES.md
# Add the updated pyproject.toml and RELEASES.md files
git add ./*pyproject.toml
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ jobs:
body=$(python repo_manager.py 4)
details=$(printf "Plugins upgraded this release: \n\t\t - ")
details=$(printf 'Plugins upgraded this release: \\n\\t\\t - ')
plugin_count=${#upgraded_plugins[@]}
for i in $(seq 0 "$(("$plugin_count" - 2))" );
do
details=$(printf '%s %s \n\t\t - ' "$details" "${upgraded_plugins[$i]}")
details=$(printf '%s %s \\n\\t\\t - ' "$details" "${upgraded_plugins[$i]}")
done
details=$(printf '%s %s \n' "$details" "${upgraded_plugins[-1]}")
details=$(printf '%s %s \\n' "$details" "${upgraded_plugins[-1]}")
# Set the outputs
Expand Down

0 comments on commit ac7a170

Please sign in to comment.