From 7734a9b65f25ab51138709ad88fce4e84cdf7b95 Mon Sep 17 00:00:00 2001 From: Laurent Pouilloux <laurent.pouilloux@inria.fr> Date: Tue, 25 Feb 2025 09:16:05 +0100 Subject: [PATCH] [ci] wikigen: use diff for all branches and update for master --- .gitlab-ci.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 05bec8a9dc2..ce0bdd8b696 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,12 +51,16 @@ wikigen: - GENERATOR: [site_hardware, site_network] SITE: [grenoble, lille, luxembourg, lyon, nancy, nantes, rennes, sophia, strasbourg, toulouse] DEBIAN_VERSION: [bookworm] + rules: + - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH + variables: + WIKI: "update" + - if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH + variables: + WIKI: "diff" script: - echo "$GRID5000_API" > "${HOME}/.grid5000_api.yml" - - bundle exec rake gen:wiki NAME=${GENERATOR} SITE=${SITE} DO=diff - only: - refs: - - master + - bundle exec rake gen:wiki NAME=${GENERATOR} SITE=${SITE} DO=${WIKI} check-no-changes-in-data: extends: .template-refrepo -- GitLab