Skip to content

Commit

Permalink
Update trigger rtd build script to exit with non zero in case we don't
Browse files Browse the repository at this point in the history
receive 200 status code back.
  • Loading branch information
Kami committed Aug 4, 2023
1 parent 6515e6a commit b0433a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contrib/trigger_rtd_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# limitations under the License.

import os
import sys

import requests

Expand All @@ -26,3 +27,7 @@
url = "https://readthedocs.org/api/v2/webhook/libcloud/87656/"
r = requests.post(url, data={"token": token, "branches": branch})
print(r.text)

if r.status_code != 200:
print("Triggering RTD build failed")
sys.exit(1)

0 comments on commit b0433a1

Please sign in to comment.