How to get the trigger type from within a build

Hey guys,

I’m attempting to create a Bitrise/slack integration where my team’s builds are sent in a specific slack channel after running. The slack part is working properly and I’m able to send messages with their relevant information, but I only want to trigger the slack message to send if the build is run with a schedule trigger. This is because we’ll run various builds throughout the day for testing purposes, and we don’t need test information clogging up the channel. Only the builds that we schedule for our nightly runs should send their information.

Essentially what I’m trying to do is only run the slack message part if the build has the schedule trigger type. Therefore, I need to figure out the trigger type within the run so that it can be checked. Is this possible? Worst comes to worst I’ll create specific workflows for our scheduled runs and only include the Slack message step in there, but we already have a lot of workflows and I’d prefer not to clog it up further.

Thanks!