diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 33a3d8d..1fac755 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,13 +75,7 @@ jobs: content = open('README.md').read() content = re.sub(r'version-[0-9][^-]*-orange', 'version-' + v + '-orange', content) lines = content.splitlines(keepends=True) - out = [] - for line in lines: - if '' in line: - continue - out.append(line) - if 'license-MIT-blue' in line: - out.append('' + chr(10)) + out = ['' + chr(10) if '' in line else line for line in lines] open('README.md', 'w').writelines(out) "