Commit 38b082d9 authored by nimrod's avatar nimrod
Browse files

Rules for pre-commit templates.

Only run when the relevanet files exist.
parent 2e3d689e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3,6 +3,9 @@ pre-commit-repo:
  stage: test
  image: registry.shore.co.il/ci-images:pre-commit
  tags: [ns4.shore.co.il]
  rules:
    - exists:
        - .pre-commit-hooks.yaml
  variables:
    XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache"
  script:
+2 −0
Original line number Diff line number Diff line
@@ -6,6 +6,8 @@ pre-commit:
  tags: [ns4.shore.co.il]
  rules:
    - if: $CI_PIPELINE_SOURCE != "schedule"
      exists:
        - .pre-commit-config.yaml
  variables:
    XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache"
    SKIP: |-