[U] Update release script
This commit is contained in:
parent
d4c8472991
commit
8ee516e640
1 changed files with 3 additions and 4 deletions
|
@ -55,10 +55,9 @@ def edit_versions(version: str):
|
||||||
print('Editing README.md...')
|
print('Editing README.md...')
|
||||||
path = Path('README.md')
|
path = Path('README.md')
|
||||||
content = path.read_text()
|
content = path.read_text()
|
||||||
changelog_i = content.index('<!-- CHANGELOG STARTS HERE --->')
|
changelog_token = '<!-- CHANGELOG STARTS HERE --->'
|
||||||
version_i = content.index('###', changelog_i)
|
changelog_i = content.index(changelog_token) + len(changelog_token)
|
||||||
version_end = content.index('\n', version_i)
|
content = content[:changelog_i] + f'\n\n### {version}' + content[changelog_i:]
|
||||||
content = content[:version_i] + f'### {version}' + content[version_end:]
|
|
||||||
path.write_text(content)
|
path.write_text(content)
|
||||||
|
|
||||||
# 4. neofetch script
|
# 4. neofetch script
|
||||||
|
|
Loading…
Reference in a new issue