Could you do this by having multiple schemes and specifying the build configuration within the scheme. The 'Actions' section of the workflow let's you select which scheme to use.
Topic:
Developer Tools & Services
SubTopic:
Xcode Cloud
Tags: