Skip to content

Commit 947dea7

Browse files
Merge pull request #1128 from jstourac/ciFix
[NO-JIRA] chore: exclude the .tekton dir from yamllint check
2 parents 16e3874 + b24627e commit 947dea7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/code-quality.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ jobs:
6969
id: validate-yaml-files
7070
run: |
7171
type yamllint || sudo apt-get -y install yamllint
72-
find . -name "*.yaml" | xargs yamllint --strict --config-file ./ci/yamllint-config.yaml
73-
find . -name "*.yml" | xargs yamllint --strict --config-file ./ci/yamllint-config.yaml
72+
# We ignore the .tekton directory with the konflux pipelines definitions as it's managed by devops (and usually violates rules...).
73+
find . -name "*.yaml" | grep -v "./.tekton/" | xargs yamllint --strict --config-file ./ci/yamllint-config.yaml
74+
find . -name "*.yml" | grep -v "./.tekton/" | xargs yamllint --strict --config-file ./ci/yamllint-config.yaml
7475
7576
# In some YAML files we use JSON strings, let's check these
7677
- name: Validate JSON strings in YAML files (just syntax)

0 commit comments

Comments
 (0)