From 98572f461f75436f1e3cf537c7fbee4dea4cf5b0 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Mon, 15 Apr 2024 18:28:56 +0000 Subject: [PATCH] Update .drone.yml --- .drone.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index a83bf26..f8cc867 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,8 +13,7 @@ steps: - "python3 --version" - "pip3 install yamllint" - "yamllint --version" - - 'find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +' - - 'find . -name "*.yaml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +' + - 'for file in $(git diff --name-only $DRONE_COMMIT_BEFORE $DRONE_COMMIT_AFTER); do if [[ $file == *"docker-compose.yml"* ]]; then parent_dir=$(dirname "$file"); cd "$parent_dir"; yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" "$(basename "$file")"; cd -; fi; done' - name: python3.9 image: python:3.9-slim-bullseye