Conditionally run tests at the gate that would normally run nightly, based on a string in the commit message

Hello everyone,

I am new to CircleCi. We have certain tests that we only wish to run on the main branch on a “nightly” basis, but not at the gate. Therefore, we have something like this:

  nightly:
    triggers:
      - schedule:
          cron: "0 5 * * *"
          filters:
            branches:
              only:
                - main
    jobs:
      - test-:

However, there are times when I do want to run those tests at the gate when I do a “git push”, based on whether the commit message contains something like “[NIGHTLY]”, which would mean to run the tests that would normally run nightly, immediately. That way I don’t have to wait until the next day to see if a test failed.

Is there a way to do this?

Thank you.

Rigoberto