Skip to content

Commit 2cf8b32

Browse files
authored
Update versions1.json as part of version bump (#1004)
`update-version.sh` updates VERSION and all associated files, but `docs/cuopt/source/versions1.json` was not included. This caused the pre-commit style check to fail on main after the 26.04 burndown version bump -- `versions1.json` still referenced 26.04.00 while VERSION had moved to 26.06.00. This adds a call to `ci/utils/update_doc_versions.py` at the end of `update-version.sh` so the docs version switcher is updated atomically as part of every version bump, rather than relying on the pre-commit hook to catch the gap after the fact. Authors: - Jake Awe (https://github.com/AyodeAwe) Approvers: - Ramakrishnap (https://github.com/rgsl888prabhu) URL: #1004
1 parent d03e197 commit 2cf8b32

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ci/release/update-version.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,6 @@ elif [[ "${RUN_CONTEXT}" == "release" ]]; then
152152
sed_runner "s|\\bmain\\b|release/${NEXT_SHORT_TAG}|g" docs/cuopt/source/faq.rst
153153
sed_runner "s|\\bmain\\b|release/${NEXT_SHORT_TAG}|g" docs/cuopt/source/cuopt-python/routing/routing-example.ipynb
154154
fi
155+
156+
# Update docs version switcher to include the new version
157+
python ci/utils/update_doc_versions.py

0 commit comments

Comments
 (0)