Skip to content

Commit 5d15673

Browse files
committed
try to fix build failures: 'gh-issue:' or 'bpo:' must be specified in the metadata!
see also python/cpython#128875, https://github.com/python/blurb/pull/35/files
1 parent c124bbc commit 5d15673

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,17 @@ jobs:
3939
git commit -m "update python to ${{ github.event.inputs.tag_short_version }}"
4040
git tag ${{ github.event.inputs.tag_short_version }}
4141
git push
42-
git push --tag
42+
git push --tag
43+
- name: Fix build failure for cpython v3.10.16, v3.11.11, v3.12.8 and v3.13.1
44+
if: contains(fromJSON('["3.10.16", "3.11.11", "3.12.8", "3.13.1"]'), github.event.inputs.tag_short_version)
45+
run: |
46+
# try to fix 'gh-issue:' or 'bpo:' must be specified in the metadata!
47+
# https://github.com/python/cpython/pull/128875
48+
# https://github.com/python/blurb/pull/35/files
49+
# https://github.com/python/cpython/pull/128890/commits
50+
# git cherry-pick 606fd98551df973262f02a1e5f469e44ec4613ec || echo "Cherry-pick failed. Resolve conflicts manually."
51+
find Misc/NEWS.d/ -type f -name '*.rst' -exec sed -i 's/\.. gh:/.. gh-issue:/g' {} +
52+
shell: bash
4353
- name: Install HTML Help Workshop as hhc.exe is need when build chm
4454
run: |
4555
rem unzip resources/html_help_workshop.zip

0 commit comments

Comments
 (0)