Commit 654f971a authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'dont-run-lint-ci-in-docs' into 'master'

Dont run lint ci in docs

See merge request gitlab-org/gitlab!46307
parents 92da471b d7371b56
......@@ -103,8 +103,11 @@
- ".gitlab/ci/build-images.gitlab-ci.yml"
- ".gitlab/ci/qa.gitlab-ci.yml"
.yaml-patterns: &yaml-patterns
- "**/*.yml"
.yaml-lint-patterns: &yaml-lint-patterns
- ".gitlab-ci.yml"
- ".gitlab/ci/**/*.yml"
- "lib/gitlab/ci/templates/**/*.yml"
- "{,ee/}changelogs/**/*.yml"
.docs-patterns: &docs-patterns
- ".gitlab/route-map.yml"
......@@ -905,10 +908,10 @@
- <<: *if-dot-com-ee-schedule
changes: *code-backstage-patterns
##############
# YAML rules #
##############
.yaml:rules:
###################
# yaml-lint rules #
###################
.yaml-lint:rules:
rules:
- <<: *if-default-refs
changes: *yaml-patterns
changes: *yaml-lint-patterns
# Yamllint of *.yml for .gitlab-ci.yml.
# Yamllint of CI-related yaml and changelogs.
# This uses rules from project root `.yamllint`.
lint-ci-gitlab:
lint-yaml:
extends:
- .default-retry
- .yaml:rules
- .yaml-lint:rules
image: pipelinecomponents/yamllint:latest
stage: test
needs: []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment