Skip to content

Commit 4d4ae1f

Browse files
committed
Abridge release notes for Action GH release
1 parent 064fafe commit 4d4ae1f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/script/prepare_changelog.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,15 @@ def extract_changelog_snippet(changelog_file, version_tag):
1818

1919
# Include everything up to, but excluding the second heading
2020
found_first_section = False
21-
for i, line in enumerate(lines):
21+
for line in lines:
2222
if line.startswith('## '):
2323
if found_first_section:
2424
break
2525
found_first_section = True
26-
output += line
26+
elif found_first_section:
27+
output += line
2728

28-
output += f"See the full [CHANGELOG.md](https://github.com/github/codeql-action/blob/{version_tag}/CHANGELOG.md) for more information."
29-
30-
return output
29+
return output.strip()
3130

3231

3332
if len(sys.argv) < 3:

0 commit comments

Comments
 (0)