From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 27 Oct 2024 03:36:12 +0000 (-0700) Subject: Chore: fix changelog script (#8022) X-Git-Tag: v2.13.1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33e9990ed58a65d3b2ce0c4ba44e5910ccb997d9;p=thirdparty%2Fpaperless-ngx.git Chore: fix changelog script (#8022) --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f150020e78..0a2cd88b81 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -655,7 +655,9 @@ jobs: git checkout ${{ needs.publish-release.outputs.version }}-changelog echo -e "# Changelog\n\n${{ needs.publish-release.outputs.changelog }}\n" > changelog-new.md echo "Manually linking usernames" - sed -i -r 's|@(.+?) \(\[#|[@\1](https://github.com/\1) ([#|ig' changelog-new.md + sed -i -r 's|@([a-zA-Z0-9_]+) \(\[#|[@\1](https://github.com/\1) ([#|g' changelog-new.md + echo "Removing unneeded comment tags" + sed -i -r 's|@|@|g' changelog-new.md CURRENT_CHANGELOG=`tail --lines +2 changelog.md` echo -e "$CURRENT_CHANGELOG" >> changelog-new.md mv changelog-new.md changelog.md