From 2c642edbd69dc623bf60bb69ddbc45aa04fc2945 Mon Sep 17 00:00:00 2001 From: Monet Lee Date: Wed, 23 Oct 2024 09:43:05 +0800 Subject: [PATCH] remove more space. --- .github/workflows/changelog.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index a8a6e26..9b12e73 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -49,11 +49,13 @@ jobs: echo -e "# CHANGELOGs\n" > CHANGELOG/README.md fi - # Add the new changelog entry at the top of the README.md - if ! grep -q "\[$CHANGELOG_FILENAME\]" CHANGELOG/README.md; then + # Add the new changelog entry at the top of the README.md + if ! grep -q "\[$CHANGELOG_FILENAME\]" CHANGELOG/README.md; then sed -i "3i- [$CHANGELOG_FILENAME](./$CHANGELOG_FILENAME)" CHANGELOG/README.md + # Remove the extra newline character added by sed + sed -i '4s/^\n//' CHANGELOG/README.md + fi fi - fi - name: Clean up run: |