Template
mirror of
https://github.com/MorpheApp/morphe-patches-template.git
synced 2026-11-30 23:09:34 +00:00
chore: Automatically readme update deep link on first release
This commit is contained in:
1 parent
e21c61d4b0
commit
7b31620f3b
3 files changed
+8
-39
No files matched your search
@@ -212,6 +212,11 @@ expanded = (
|
||||
)
|
||||
|
||||
generated = build_content(expanded=expanded)
|
||||
|
||||
# Replace template links if present
|
||||
readme = readme.replace("https://morphe.software/add-source?github=xyz-user/xyz-patches", f"https://morphe.software/add-source?github={repo_full}")
|
||||
readme = readme.replace("https://github.com/xyz-user/xyz-patches", f"https://github.com/{repo_full}")
|
||||
|
||||
new_readme = re.sub(
|
||||
rf"{START_PATTERN}.*?{re.escape(END_MARKER)}",
|
||||
f"{actual_start}\n{generated}\n{END_MARKER}",
|
||||
|
||||
Reference in new issue
Block a user