Skip to content

Commit

Permalink
Merge pull request #215 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 3f7960b + 092475a commit ffb8718
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-release-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ jobs:
upgraded_plugins=("${upgraded_plugins[@]}")
count=${#upgraded_plugins[*]}
for i in $(seq 0 "$(("$count" - 1))" );
for i in $(seq 0 "$(("$count" - 2))" );
do
details=$(printf '%s %s \n\t - ' "$details" "${upgraded_plugins[$i]}")
done
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ jobs:
# Get the release notes
body=$(python repo_manager.py 4)
upgraded_plugins=($(python repo_manager.py 5))
details=$(printf 'Plugins upgraded this release: \n\t - ')
details=$(printf 'Plugins upgraded this release: \\n\\t\\t - ')
plugin_count=${#upgraded_plugins[@]}
for i in $(seq 0 "$(("$plugin_count" - 2))" );
count=${#upgraded_plugins[*]}
for i in $(seq 0 "$(("$count" - 2))" );
do
details=$(printf '%s %s \\n\\t\\t - ' "$details" "${upgraded_plugins[$i]}")
details=$(printf '%s %s \n\t - ' "$details" "${upgraded_plugins[$i]}")
done
details=$(printf '%s %s \\n' "$details" "${upgraded_plugins[-1]}")
details=$(printf '%s %s \n' "$details" "${upgraded_plugins[$count - 1]}")
# Set the outputs
Expand Down

0 comments on commit ffb8718

Please sign in to comment.