We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
latest
1 parent de0f675 commit 9b890f5Copy full SHA for 9b890f5
ops/pipeline/trigger-rtd-impl.py
@@ -26,6 +26,10 @@ def trigger_build(token: str) -> None:
26
else:
27
branch = event["pull_request"]["number"]
28
29
+ if branch == "master":
30
+ # Use the `latest` tag, otherwise RTD wouldn't update the rendered doc.
31
+ branch = "latest"
32
+
33
URL = f"https://readthedocs.org/api/v3/projects/xgboost/versions/{branch}/builds/"
34
HEADERS = {"Authorization": f"token {token}"}
35
response = requests.post(URL, headers=HEADERS)
0 commit comments