From 19790d7f2d804a3f69425413d6d78a4fd1c4cb41 Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Fri, 24 Nov 2023 16:24:41 -0500 Subject: [PATCH] fix(release.yml): fix update changelog step --- .github/workflows/release.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ca93ba9ff3..2377832112 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -102,14 +102,13 @@ jobs: sed -i 's/#### Refactor/#### Refactoring/' CHANGELOG.md sed -i 's/#### Test/#### Testing/' CHANGELOG.md - # prepend changelog to .docs/md/version_changes.md - file=".docs/md/version_changes.md" + # prepend release changelog to cumulative changelog + clog=".docs/md/version_changes.md" temp="version_changes.md" - clog=$(cat CHANGELOG.md) - echo "$(tail -n +2 $file)" > $file - cat $clog > $temp - sudo mv $temp $file - sed -i '1i # Changelog' $file + echo "$(tail -n +2 $clog)" > $clog + cat CHANGELOG.md $clog > $temp + sudo mv $temp $clog + sed -i '1i # Changelog' $clog - name: Upload changelog uses: actions/upload-artifact@v3