Dynamic branch to run scheduled build


I’m trying to find out if it’s possible to set the Branch name in the Bitrise Schedule Build dialog dynamically.

Context: We have weekly release cadence where automatic app store builds are pushed to the app store using Fastlane. At the moment, we’re looking at using Bitrise to accomplish the same without using Fastlane.

One issue we’ve come across is that whenever a build needs to be scheduled, we have to define a Branch (or a commit hash) on which the build will be run.

Our problem is that for each week, we have a dynamic branch name (eg: release/2022W01) which is based on the current week of the year.

Is it possible to pass this Branch value dynamically? Say, as an Environment variable for an instance?

Appreciate any leads. Thank you! :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.