Parametric Xcode Stack

Hello there,

Is it possible to use a variable as a stack for a workflow?
I would like to do something like this (where STACK_ID is set to either osx-xcode-15.3.x or osx-xcode-16.0.x-edge based on the app running the workflow):

  my-workflow:
    meta:
      bitrise.io:
        stack: {{ STACK_ID }}
        machine_type_id: g2-m1.4core

Background: We have a couple of iOS apps sharing the workflows defined in bitrise.yaml. We would like to have one particular app to be built on a different stack. Same time, we would like to avoid workflow code duplication.

Is this even possible?