From f11932a7c3a6631b44330c60e73de4c04a4da4ac Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 23 Oct 2021 20:33:25 +0300 Subject: [PATCH] More selective template linting. Only on schedule or if the templates are changed. --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ed2df11..b50a1b5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,6 +31,10 @@ lint templates: # yamllint enable rule:line-length variables: XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" + rules: + - if: $CI_PIPELINE_SOURCE == "push" + changes: + - templates/* cache: paths: - .cache/ -- GitLab