diff --git a/.github/actions/recent-posts/main.py b/.github/actions/recent-posts/main.py index 53b9bb1..1892e20 100644 --- a/.github/actions/recent-posts/main.py +++ b/.github/actions/recent-posts/main.py @@ -59,7 +59,7 @@ def main( repl = ( f"- [{model.entry.title}]({model.entry.link}) by {model.entry.author}" ) - new_text = re.sub(pattern=pattern, repl=f"\n{repl}\n", string=text) + new_text = re.sub(pattern=pattern, repl=f"\n{repl}", string=text) with readme.open(mode="w") as f: f.write(new_text)