From 525923d21383f3e03ee645c07fe6652415730ac2 Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Wed, 25 Aug 2021 15:23:00 +0530 Subject: [PATCH] fix(roulette): Run only one conditional block --- .github/helper/roulette.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/helper/roulette.py b/.github/helper/roulette.py index 5c934bc697..d00c47d8d7 100644 --- a/.github/helper/roulette.py +++ b/.github/helper/roulette.py @@ -53,15 +53,15 @@ if __name__ == "__main__": if ci_files_changed: print("CI related files were updated, running all build processes.") - if only_docs_changed: + elif only_docs_changed: print("Only docs were updated, stopping build process.") sys.exit(0) - if only_frontend_code_changed and build_type == "server": + elif only_frontend_code_changed and build_type == "server": print("Only Frontend code was updated; Stopping Python build process.") sys.exit(0) - if only_py_changed and build_type == "ui": + elif only_py_changed and build_type == "ui": print("Only Python code was updated, stopping Cypress build process.") sys.exit(0)