]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Chore: fix changelog script (#8022)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Sun, 27 Oct 2024 03:36:12 +0000 (20:36 -0700)
committerGitHub <noreply@github.com>
Sun, 27 Oct 2024 03:36:12 +0000 (03:36 +0000)
.github/workflows/ci.yml

index f150020e78be70ec963f71db260371b15319b2d9..0a2cd88b8185e0930c52163b200ac4ca4eb76472 100644 (file)
@@ -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