Skip to content

Commit

Permalink
skip test files from release phase linter.
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Antonio Osorio <[email protected]>
  • Loading branch information
JAORMX committed Oct 17, 2024
1 parent f2bba6b commit f7f0933
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit f7f0933

Please sign in to comment.