diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bcf3f74..42b0afc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -37,4 +37,5 @@ netlify: - curl -X POST -d '{}' https://api.netlify.com/build_hooks/$NETLIFY_BUILD_HOOK rules: - - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + # Only trigger through schedule job and "Run pipeline" in the main branch + - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && ($CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web")'