How to stop triggering build automatically for every commit

I have a pipeline jobs imported into another pipeline.
Here success and failure is imported from another piepline.

Now for every commit I make a pipeline is being triggered.
How do I stop this.

I want success or failure to trigger only if artifactory_dryrun3 or artifactory_dryrun4 is triggered

artifactory_dryrun3:
  stage: run
  image: 
  script:
  rules:
    - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULE_TAG == "artifactory_dryrun3"

artifactory_dryrun4:
  stage: run
  image: 
  script:
  rules:
    - if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULE_TAG == "artifactory_dryrun3"

success:
  stage: notification
  needs:
    - job: artifactory_dryrun4
      artifacts: true
    - job: artifactory_dryrun3
      artifacts: true  
  extends: .notify_success

failure:
  stage: notification
  needs:
    - job: artifactory_dryrun4
      artifacts: true
    - job: artifactory_dryrun3
      artifacts: true  
  extends: .notify_failure