From efe9799b50aff905f5c3cec27fca665cece6cc2b Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Thu, 29 Feb 2024 02:22:38 +0000 Subject: [PATCH] Update .github/.drone.yml --- .github/.drone.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/.drone.yml b/.github/.drone.yml index d5faa6d..4999bd0 100644 --- a/.github/.drone.yml +++ b/.github/.drone.yml @@ -8,6 +8,13 @@ trigger: - pull_request steps: + - name: lint_docker_compose + image: python:3.8-slim-bullseye + commands: + - "pip3 install yamllint" + - "yamllint --version" + - 'yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" ./*.yml' + - name: python3.8 image: python:3.8-slim-bullseye commands: @@ -31,3 +38,28 @@ steps: - "pip3 install yamllint" - "yamllint --version" - 'yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" .' + + # Add conditional steps for specific directories here + - name: lint_arrs_directory + image: python:3.8-slim-bullseye + commands: + - "pip3 install yamllint" + - "yamllint --version" + - 'yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" ./arr/*.yml' + when: + condition: + - change_match: + path: + - "^arrs/.*\.yml$" + + - name: lint_downloaders_directory + image: python:3.8-slim-bullseye + commands: + - "pip3 install yamllint" + - "yamllint --version" + - 'yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" ./downloaders/*.yml' + when: + condition: + - change_match: + path: + - "^downloaders/.*\.yml$" \ No newline at end of file