chore: update global workflows (#3570)
This commit is contained in:
parent
a88c01f3b8
commit
2ac87fdc36
2 changed files with 10 additions and 2 deletions
9
.github/workflows/update-docs.yml
vendored
9
.github/workflows/update-docs.yml
vendored
|
|
@ -81,9 +81,16 @@ jobs:
|
|||
--arg description "${{ github.event.repository.description }}" \
|
||||
'{default_branch: $default_branch}')
|
||||
|
||||
# change the default branch to the latest release
|
||||
curl \
|
||||
-X PATCH \
|
||||
-H "Authorization: Token ${RTD_TOKEN}" \
|
||||
https://readthedocs.org/api/v3/projects/${RTD_SLUG}/ \
|
||||
-H "Content-Type: application/json" \
|
||||
https://readthedocs.org/api/v3/projects/${RTD_SLUG}/ \
|
||||
-d "$json_body"
|
||||
|
||||
# trigger a build for the latest version
|
||||
curl \
|
||||
-X POST \
|
||||
-H "Authorization: Token ${RTD_TOKEN}" \
|
||||
https://readthedocs.org/api/v3/projects/${RTD_SLUG}/versions/latest/builds/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue