Skip to content

Commit e7cebab

Browse files
debug: add logging to release workflow changelog extraction
1 parent 398954a commit e7cebab

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,24 @@ jobs:
4545
id: changelog
4646
run: |
4747
VERSION="${{ steps.version.outputs.version }}"
48+
echo "DEBUG: VERSION='$VERSION'"
49+
echo "DEBUG: Looking for header_prefix='## v$VERSION'"
50+
head -5 CHANGELOG.md
4851
# Use Python for exact string matching (no regex dot issues)
4952
# Outputs: release title (from header) and release notes (body)
5053
# Changelog headers use 'v' prefix (e.g. ## v1.0.4)
5154
python3 -c "
5255
import sys
5356
version = 'v' + sys.argv[1]
5457
header_prefix = '## ' + version
58+
print(f'DEBUG: searching for header_prefix={repr(header_prefix)}', file=sys.stderr)
5559
found = False
5660
title = ''
5761
lines = []
5862
for line in open('CHANGELOG.md'):
5963
stripped = line.rstrip()
6064
if stripped.startswith('## '):
65+
print(f'DEBUG: found header={repr(stripped)}', file=sys.stderr)
6166
if found:
6267
break
6368
if stripped == header_prefix or stripped.startswith(header_prefix + ' ') or stripped.startswith(header_prefix + '\t'):

0 commit comments

Comments
 (0)