From 36388ca11cc45d4c47e834eb8637de5d193b5340 Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Mon, 1 Jan 2024 19:40:33 +0100 Subject: [PATCH] ci(docs): Add rules for linting job --- docs/.gitlab-ci.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/.gitlab-ci.yaml b/docs/.gitlab-ci.yaml index bf4d76844..02fa96678 100644 --- a/docs/.gitlab-ci.yaml +++ b/docs/.gitlab-ci.yaml @@ -3,8 +3,17 @@ stages: lint-docs: extends: .earthly + stage: lint script: - earthly --ci +docs-lint + rules: + - if: '$FORCE_DOCS_BUILD == "true"' + - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"' + changes: + paths: + - docs/**/* + - images/**/README.md + - charts/**/README.md build-docs: stage: build -- GitLab