File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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'):
You can’t perform that action at this time.
0 commit comments