preliminary: prevent uploading corpus if running in PR

This commit is contained in:
Yakov Olkhovskiy 2024-11-20 22:41:13 +00:00
parent 44b4bd38b9
commit cc6fd38dc6

View File

@ -286,7 +286,11 @@ def main():
retcode = process.wait()
if retcode == 0:
logging.info("Run successfully")
upload_corpus(fuzzers_path)
if pr_info.number == 0 and pr_info.base_ref == "master" and pr_info.head_ref == "master":
logging.info("Uploading corpus - running in master")
# upload_corpus(fuzzers_path)
else:
logging.info("Not uploading corpus - running in PR")
else:
logging.info("Run failed")