From 08ec9e37bfabe9a34631dfcc3ca07634817aa485 Mon Sep 17 00:00:00 2001 From: Romain Deville <code@romaindeville.fr> Date: Thu, 22 Apr 2021 13:14:55 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fix=20workflow=20to=20not=20run?= =?UTF-8?q?=20CI=20elsewhere=20that=20framagit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 5 +---- docs/.gitlab-ci.yml | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cd01a8c..612a8d0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,10 +18,7 @@ workflow: - if: $CI_COMMIT_TITLE =~ /.*(WIP|NO-CI|🚧|:construction:).*/ when: never # Do not run CI if repo is not on framagit - - if: $CI_REPOSITORY_URL !~ /framagit.org/ - when: never - # Run the CI otherwise (depending on `only/except` key per jobs) - - when: always + - if: $CI_SERVER_HOST =~ /^framagit.org/ ### BEGIN MKDOCS TEMPLATE ### ### WARNING, DO NOT UPDATE CONTENT BETWEEN MKDOCS TEMPLATE TAG ! ### diff --git a/docs/.gitlab-ci.yml b/docs/.gitlab-ci.yml index ec82115..9a98aa9 100644 --- a/docs/.gitlab-ci.yml +++ b/docs/.gitlab-ci.yml @@ -22,8 +22,8 @@ workflow: # WIP, NO-CI or 🚧 (gitmoji for "work in progress", aka :construction:) - if: $CI_COMMIT_TITLE =~ /.*(WIP|NO-CI|🚧|:construction:).*/ when: never - # Run the CI otherwise (depending on `rules` key per jobs) - - when: always + # Do not run CI if repo is not on framagit + - if: $CI_SERVER_HOST =~ /^framagit.org/ # Stages jobs will pass through with anchors to avoid updating stage in multiple # place within this file. Now renaming a stage can be done directly after the -- GitLab