Stage Schedule and Commit message

Hi Team,

In my .gital-ci.yml file have multiple stages, in that i need to configure one stage has to be run when commit message includes package and same stage need to run twice in day and in while running schedule no need to run all other stages.

Here is the my config:

package_scan:
  stage: scan
  script:
    -  echo $testing 
  rules:
    - if: $CI_PIPELINE_SOURCE == "schedule" || $CI_COMMIT_MESSAGE =~ /package/
  tags:

any additional steps required? or any solution to achieve that.