Skip to content

Commit 413d21d

Browse files
committed
ci: stamp the current protocol version into learn/versioning.mdx at cut
The promote step rewrites draft-tier links but not the hardcoded dated version in the Revisions section, which is how the 2026-07-28 copy shipped naming 2025-11-25 as current. Stamp the new version into the promoted copy and the draft source, mirroring the existing changelog rewrite.
1 parent 7f86f0e commit 413d21d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/cut-release.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ jobs:
123123
# the new tag, matching the 2025-11-25 changelog.
124124
sed -i -E "s|(/specification/compare/[0-9]{4}-[0-9]{2}-[0-9]{2})\.\.\.draft|\1...$VERSION|g" \
125125
"docs/specification/$VERSION/changelog.mdx"
126+
# The learn/versioning page hardcodes the previous release as the
127+
# current protocol version, and the link rewrites above only cover
128+
# draft-tier paths. Stamp the new version into the promoted copy
129+
# and into the draft source for the next cycle.
130+
sed -i -E "s|(\*\*current\*\* protocol version is \[\*\*)[0-9]{4}-[0-9]{2}-[0-9]{2}(\*\*\]\(/specification/)[0-9]{4}-[0-9]{2}-[0-9]{2}(/\))|\1$VERSION\2$VERSION\3|" \
131+
"docs/docs/$VERSION/learn/versioning.mdx" docs/docs/draft/learn/versioning.mdx
126132
127133
- name: Regenerate schema artifacts
128134
run: |

0 commit comments

Comments
 (0)