Skip to content

Commit

Permalink
fix(release.yml): fix update changelog step (#2015)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Nov 25, 2023
1 parent 11f518c commit 0da6b8e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Expand Up @@ -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
Expand Down

0 comments on commit 0da6b8e

Please sign in to comment.