From d052fc5e562f1600311cde4fe8aae8200c455427 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Wed, 2 Nov 2022 18:11:48 +0100 Subject: [PATCH] ci: trigger job when there is a doc change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit otherwise the MR can’t be merged --- .gitlab-ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 12db12f5..50308f24 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,6 +17,16 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest - tests/**/*.py - .pre-commit-config.yaml +.doc_changes: + rules: + - changes: + - silkaj/**/*.py + - tests/**/*.py + - doc/*.md + - README.md + - CONTRIBUTING.md + - .pre-commit-config.yaml + .changes: rules: - changes: @@ -88,7 +98,7 @@ pyupgrade: pre-commit:hooks: extends: - - .code_changes + - .doc_changes - .pre-commit stage: checks script: -- GitLab