You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/post-release-version-bump.yml
+18-7Lines changed: 18 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -115,14 +115,15 @@ jobs:
115
115
sed -i "s|\(/aws-observability/adot-autoinstrumentation-node:\)v[0-9]\+\.[0-9]\+\.[0-9]\+|\1v${{github.event.inputs.version}}|g" .github/workflows/daily-scan.yml
116
116
117
117
# for patch releases, avoid merge conflict by manually resolving CHANGELOG with main
118
-
if [[ "${{ github.event.inputs.is_patch }}" == "true" ]]; then
118
+
if [[ "${{ github.event.inputs.is_patch }}" == "true" ]]; then
119
+
# Copy the patch release entries
120
+
sed -n "/^## v${VERSION}/,/^## v[0-9]/p" CHANGELOG.md | sed '$d' > /tmp/patch_release_section.txt
119
121
git fetch origin main
120
-
git show origin/main:CHANGELOG.md | sed -n '/## Unreleased/,/^## v[0-9]/p' | sed '$d' | tail -n +2 | sed '/^$/d' > /tmp/unreleased_content.txt
121
-
122
-
# Insert the content right after the existing "## Unreleased" header
123
-
sed -i '/## Unreleased/r /tmp/unreleased_content.txt' CHANGELOG.md
122
+
git show origin/main:CHANGELOG.md > CHANGELOG.md
123
+
# Insert the patch release entries after Unreleased
0 commit comments