Prevent docs release of being too smart

This commit is contained in:
alesapin 2021-12-16 10:59:42 +03:00
parent 39288ad7f6
commit 38f2e4c8ac

View File

@ -25,13 +25,6 @@ if __name__ == "__main__":
pr_info = PRInfo(get_event(), need_changed_files=True) pr_info = PRInfo(get_event(), need_changed_files=True)
gh = Github(get_best_robot_token()) gh = Github(get_best_robot_token())
if not pr_info.has_changes_in_documentation():
logging.info ("No changes in documentation")
commit = get_commit(gh, pr_info.sha)
commit.create_status(context=NAME, description="No changes in docs", state="success")
sys.exit(0)
logging.info("Has changes in docs")
if not os.path.exists(temp_path): if not os.path.exists(temp_path):
os.makedirs(temp_path) os.makedirs(temp_path)