From 72eaaf6d55e0a9a35dfcdef91dd23661a26f5da0 Mon Sep 17 00:00:00 2001 From: Sylvain Gugger <35901082+sgugger@users.noreply.github.com> Date: Tue, 22 Nov 2022 10:38:38 -0500 Subject: [PATCH] Fix nightly runs (#20352) * Fix nightly runs * Fix type * Address review comment --- .circleci/create_circleci_config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/create_circleci_config.py b/.circleci/create_circleci_config.py index b2c11b9048..8c00789fbb 100644 --- a/.circleci/create_circleci_config.py +++ b/.circleci/create_circleci_config.py @@ -385,7 +385,11 @@ def create_circleci_config(folder=None): if len(jobs) > 0: config = {"version": "2.1"} - config["parameters"] = {"tests_to_run": {"type": "string", "default": test_list}} + config["parameters"] = { + # Only used to accept the parameters from the trigger + "nightly": {"type": "boolean", "default": False}, + "tests_to_run": {"type": "string", "default": test_list}, + } config["jobs"] = {j.job_name: j.to_dict() for j in jobs} config["workflows"] = {"version": 2, "run_tests": {"jobs": [j.job_name for j in jobs]}} with open(os.path.join(folder, "generated_config.yml"), "w") as f: