From 3db7d31358e3128004b365d3385908a9936a04dd Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Thu, 9 Mar 2023 20:26:10 +0000 Subject: [PATCH] Only de-select `build-source-tarball` if `build-docs` is also `False` Signed-off-by: Pedro Algarvio --- tools/ci.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/ci.py b/tools/ci.py index 645051dc603..e0354b6d1b1 100644 --- a/tools/ci.py +++ b/tools/ci.py @@ -347,13 +347,16 @@ def define_jobs( if not jobs["test"] and not jobs["test-pkg"]: with open(github_step_summary, "a", encoding="utf-8") as wfh: for job in ( - "build-source-tarball", "build-deps-onedir", "build-salt-onedir", "build-pkgs", ): wfh.write(f"De-selecting the '{job}' job.\n") jobs[job] = False + if not jobs["build-docs"]: + with open(github_step_summary, "a", encoding="utf-8") as wfh: + wfh.write("De-selecting the 'build-source-tarball' job.\n") + jobs["build-source-tarball"] = False with open(github_step_summary, "a", encoding="utf-8") as wfh: wfh.write("Selected Jobs:\n")