From b23b05f89fe51ed4852c3c33df54b90eedcb7b97 Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Mon, 2 Oct 2023 00:57:04 +0000 Subject: [PATCH] ci: only exclude build job in "site" branch --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 723a1d6..452fc7d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,8 +19,8 @@ build: - npm run build # Generate site rules: - # Only trigger through push & "Run pipeline" events in master branch; Skip in renovate job - - if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")' + # Only trigger through push & "Run pipeline" events not in "site" branch; Skip in renovate job + - if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME != "site" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")' when: always artifacts: