Skip to content

Commit

Permalink
update insert logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
mo3et committed Oct 22, 2024
1 parent e50ff87 commit b21d6dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ jobs:
# Update CHANGELOG/README.md with the new file in reverse order
if [ ! -f "CHANGELOG/README.md" ]; then
echo "# CHANGELOGs" > CHANGELOG/README.md
echo -e "# CHANGELOGs\n" > CHANGELOG/README.md
fi
# Insert the new changelog at the top of the README.md file
sed -i "2i- [$CHANGELOG_FILENAME](./$CHANGELOG_FILENAME)" CHANGELOG/README.md
sed -i "2s/^/- [$CHANGELOG_FILENAME](./$CHANGELOG_FILENAME)\n/" CHANGELOG/README.md
fi
- name: Clean up
Expand Down

0 comments on commit b21d6dd

Please sign in to comment.