Skip to content

Commit 4c28866

Browse files
committed
Update readthedocs.yml
1 parent 2b66621 commit 4c28866

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/readthedocs.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ jobs:
2222
REF_NAME: ${{ github.ref_name }}
2323
run: |
2424
set -euo pipefail
25-
version="latest"
26-
if [ "$REF_TYPE" = "tag" ]; then
27-
version="$REF_NAME"
28-
fi
29-
echo "Triggering Read the Docs build for version ${version}"
25+
echo "Triggering Read the Docs build for version latest"
3026
curl --fail -X POST \
3127
-H "Authorization: Token ${RTD_TOKEN}" \
32-
"https://readthedocs.org/api/v3/projects/${RTD_PROJECT}/versions/${version}/builds/"
28+
"https://readthedocs.org/api/v3/projects/${RTD_PROJECT}/versions/latest/builds/"

0 commit comments

Comments
 (0)