Skip to content

Commit b31a92b

Browse files
committed
restore skipping ci cache
1 parent 36b433e commit b31a92b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ci/praktika/native_jobs.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,12 @@ def _check_db(workflow):
359359
)
360360
)
361361

362-
if workflow.enable_job_filtering_by_changes and results[-1].is_ok():
362+
pr_allows_cache = "[x] <!---no_ci_cache" not in Info().pr_body
363+
if (
364+
workflow.enable_job_filtering_by_changes
365+
and results[-1].is_ok()
366+
and pr_allows_cache
367+
):
363368
print("Filter not affected jobs")
364369

365370
def check_affected_jobs():
@@ -439,7 +444,7 @@ def check_affected_jobs():
439444
)
440445
)
441446

442-
if results[-1].is_ok() and workflow.enable_cache:
447+
if results[-1].is_ok() and workflow.enable_cache and pr_allows_cache:
443448
print("Cache Lookup")
444449
stop_watch = Utils.Stopwatch()
445450
info = ""

0 commit comments

Comments
 (0)