Skip to content

Commit b3ccc41

Browse files
authored
Add the ruby version to the current release (heroku#1555)
* Add the ruby version to the current release This task runs after the new version is injected into the CHANGELOG. That means that if we add something under "unreleased" at this point, then it shows up in the wrong section. This commit fixes it. * Remove extra trailing newline
1 parent 28638de commit b3ccc41

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/document_ruby_version.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
with:
2525
custom_update_command: |
2626
set -euo pipefail
27+
DATE_TODAY="$(date --utc --iso-8601)"
2728
28-
sed --in-place '/## \[Unreleased\]/a\
29-
\
30-
- ${{ inputs.is_jruby && 'J' || ''}}Ruby ${{inputs.ruby_version}} is now available
31-
' CHANGELOG.md
29+
sed --in-place "/## \[v${NEW_VERSION}\] - ${DATE_TODAY}/a\\
30+
\\
31+
- ${{ inputs.is_jruby && 'J' || ''}}Ruby ${{inputs.ruby_version}} is now available" CHANGELOG.md
3232
3333
sed --in-place --regexp-extended \
3434
--expression "s/v${EXISTING_VERSION}/v${NEW_VERSION}/" \

0 commit comments

Comments
 (0)