chore(ci): limit netlify build to schedule job

This commit is contained in:
MDLeom 2022-01-08 23:02:50 +00:00
parent c4b7612b01
commit 680e71dc8d
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 2 additions and 1 deletions

View File

@ -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")'