From 8b52bc0cc149cd70c5f9383ebb88bdd24a15022f Mon Sep 17 00:00:00 2001 From: Romain Deville <code@romaindeville.fr> Date: Thu, 22 Apr 2021 11:52:46 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=E2=9C=8F=20Fix=20CI=20typos=20in?= =?UTF-8?q?=20workflow=20and=20for=20index.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make workflow only run on framagit.org and move path where index.html is rsync. --- .gitlab-ci.yml | 3 +++ docs/.gitlab-ci.yml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e54569a..b6db067 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,6 +17,9 @@ workflow: # WIP, NO-CI or 🚧 (gitmoji for "work in progress", aka :construction:) - 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 diff --git a/docs/.gitlab-ci.yml b/docs/.gitlab-ci.yml index 216d4a7..ec82115 100644 --- a/docs/.gitlab-ci.yml +++ b/docs/.gitlab-ci.yml @@ -378,7 +378,7 @@ script_deploy_html: &script_deploy_html <body>\n Redirecting to <a href='${ONLINE_PATH}'>${ONLINE_PATH}</a>...\n </body>\n - </html>" > tmp/${PROJECT_PATH}/../index.html + </html>" > tmp/${PROJECT_PATH}/index.html - rsync -Oavz "tmp/" "${RSYNC_DEST}" rules: - *rules_prod -- GitLab