Verified Commit f7307570 authored by Dave Long's avatar Dave Long
Browse files

ci: #3612933 Only run cspell on main and MRs that target main

By: mstrelan
By: smustgrave
parent e896eca4
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -620,8 +620,12 @@ default:

'📔 Spell-checking':
  <<: [ *yarn-install-from-cache ]
  <<: [ *default-job-settings-lint ]
  stage: 🪄 Lint
  rules:
    - if: $CI_PIPELINE_SOURCE == "parent_pipeline"
      when: never
    - if: $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_ROOT_NAMESPACE == "project" && $CI_COMMIT_BRANCH == "main"
    - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main"
  variables:
    KUBERNETES_CPU_REQUEST: "2"
    CACHE_FILE: "core/.cspellcache"