Skip to content
Snippets Groups Projects
Commit 38b082d9 authored by nimrod's avatar nimrod
Browse files

Rules for pre-commit templates.

Only run when the relevanet files exist.
parent 2e3d689e
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
......@@ -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: |-
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment