This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git


The following commit(s) were added to refs/heads/trunk by this push:
     new b0433a1d6 Update trigger rtd build script to exit with non zero in 
case we don't receive 200 status code back.
b0433a1d6 is described below

commit b0433a1d698abc67506f1fac2e85732aaef4e275
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Aug 4 12:18:01 2023 +0200

    Update trigger rtd build script to exit with non zero in case we don't
    receive 200 status code back.
---
 contrib/trigger_rtd_build.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/contrib/trigger_rtd_build.py b/contrib/trigger_rtd_build.py
index e9e24ecfa..99d5f35b2 100755
--- a/contrib/trigger_rtd_build.py
+++ b/contrib/trigger_rtd_build.py
@@ -15,6 +15,7 @@
 # limitations under the License.
 
 import os
+import sys
 
 import requests
 
@@ -26,3 +27,7 @@ print(f"Using branch: {branch}")
 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)

Reply via email to