Skip to content

Commit fd63d0c

Browse files
svekarsfacebook-github-bot
authored andcommitted
Enable doc job to run on -rc tags. (#3345)
Summary: Pull Request resolved: #3345 Reviewed By: dbort Differential Revision: D56557091 Pulled By: svekars fbshipit-source-id: 4300ca86d01ec110fc6934588cd691c12661a730
1 parent 30128f3 commit fd63d0c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/doc-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- release/*
99
tags:
1010
- v[0-9]+.[0-9]+.[0-9]+
11+
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
1112
workflow_dispatch:
1213
schedule:
1314
- cron: '0 0 * * *'

docs/source/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@
8686
version = ".".join(
8787
et_version_docs.split("/")[-1].split("-")[0].lstrip("v").split(".")[:2]
8888
)
89+
elif et_version_docs.startswith("refs/heads/release/"):
90+
version = et_version_docs.split("/")[-1]
8991
print(f"Version: {version}")
9092
html_title = " ".join((project, version, "documentation"))
9193

0 commit comments

Comments
 (0)