From b91a046a97e21d9cc5eed4c07b244176f244d7a1 Mon Sep 17 00:00:00 2001 From: Sahcim Date: Wed, 31 Jul 2024 10:57:11 +0200 Subject: [PATCH] Remove build docs step in gitlab ci when is set to True --- {{ cookiecutter.repo_name }}/.gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/{{ cookiecutter.repo_name }}/.gitlab-ci.yml b/{{ cookiecutter.repo_name }}/.gitlab-ci.yml index 49fa4d5..a4eacf8 100644 --- a/{{ cookiecutter.repo_name }}/.gitlab-ci.yml +++ b/{{ cookiecutter.repo_name }}/.gitlab-ci.yml @@ -235,6 +235,8 @@ tests: rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + +{%- if cookiecutter.docs != "No docs" %} ############################################## # Job to build Sphinx docs and host it on GitLab Pages @@ -250,5 +252,6 @@ pages: paths: - public rules: - - if: {{ cookiecutter.docs }} != "No docs" - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + +{% endif -%} \ No newline at end of file