Skip to content

Commit 50bd154

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 2353638 commit 50bd154

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ jobs:
4040
git tag ${{ github.event.inputs.tag_short_version }}
4141
git push
4242
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+
find Misc/NEWS.d/ -type f -name '*.rst' -exec sed -i 's/\.. gh:/.. gh-issue:/g' {} +
50+
working-directory: cpython
51+
shell: bash
4352
- name: Install HTML Help Workshop as hhc.exe is need when build chm
4453
run: |
4554
rem unzip resources/html_help_workshop.zip

0 commit comments

Comments
 (0)