Skip to content

Commit

Permalink
fix(release.yml): fix update changelog step
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Nov 24, 2023
1 parent 11f518c commit 1e98ad6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,12 @@ jobs:
sed -i 's/#### Test/#### Testing/' CHANGELOG.md
# prepend changelog to .docs/md/version_changes.md
file=".docs/md/version_changes.md"
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 1e98ad6

Please sign in to comment.