From 4cd5ac1e0c79e5e18c8b2ed049cb902972adf376 Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Sat, 8 Jan 2022 05:45:10 +0000 Subject: [PATCH] fix(ci): always deploy when commit to main branch --- .gitlab-ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b437edde..6417bddb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,9 +27,8 @@ pages: - public rules: - # Only trigger through schedule job and "Run pipeline" in main branch - - if: '$CI_COMMIT_REF_NAME == "main" && ($CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web")' - when: always + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + include: - template: Security/Secret-Detection.gitlab-ci.yml