Skip to content

Commit a246dff

Browse files
fix(rtd): trigger a new build automatically (#424)
1 parent 1feef7a commit a246dff

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/update-docs.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,16 @@ jobs:
8181
--arg description "${{ github.event.repository.description }}" \
8282
'{default_branch: $default_branch}')
8383
84+
# change the default branch to the latest release
8485
curl \
8586
-X PATCH \
8687
-H "Authorization: Token ${RTD_TOKEN}" \
87-
https://readthedocs.org/api/v3/projects/${RTD_SLUG}/ \
8888
-H "Content-Type: application/json" \
89+
https://readthedocs.org/api/v3/projects/${RTD_SLUG}/ \
8990
-d "$json_body"
91+
92+
# trigger a build for the latest version
93+
curl \
94+
-X POST \
95+
-H "Authorization: Token ${RTD_TOKEN}" \
96+
https://readthedocs.org/api/v3/projects/${RTD_SLUG}/versions/latest/builds/

0 commit comments

Comments
 (0)