From f7f0933b404eae625810441c8c8d121256055244 Mon Sep 17 00:00:00 2001 From: Juan Antonio Osorio Date: Thu, 17 Oct 2024 15:35:00 +0300 Subject: [PATCH] skip test files from release phase linter. Signed-off-by: Juan Antonio Osorio --- .github/workflows/lint.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 03211b2..78199a6 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -33,6 +33,12 @@ jobs: # Iterate over all YAML files in the directory for file in "$DIRECTORY"/*.yaml; do echo "Checking file: $file" + + # Skip .test.yaml and .test.yml files + if [[ "$file" == *".test.yaml" ]] || [[ "$file" == *".test.yml" ]]; then + echo "Skipping test file: $file" + continue + fi # Extract the value of the "release_phase" field release_phase_value=$(yq e '.release_phase' "$file")