Skip to content

Commit 1d0b983

Browse files
fix rtd
1 parent dbc301d commit 1d0b983

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.readthedocs.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@ build:
1616
install:
1717
- "true"
1818
post_checkout:
19-
- git fetch --tags || true
19+
- |
20+
while true; do
21+
TAG=$(git tag --merged HEAD --sort=-committerdate 'v*' | head -n 1)
22+
if [ -n "$TAG" ]; then
23+
echo "✅ Found first reachable tag: $TAG"
24+
break
25+
fi
26+
git fetch --deepen=50
27+
done
2028
2129
sphinx:
2230
configuration: docs/conf.py

0 commit comments

Comments
 (0)