Use regex on run_if

Any idea on how to conditionally run (or skip) a step using regex?

Something like this?

app:
  envs:
    - PLATFORMS: ios,android
workflows:
  _setup_ios:
    steps:
    - my_step:
      run_if: |-
        {{ PLATFORMS.include? "ios" }}
  _setup_android:
    steps:
    - my_step:
      run_if: |-
        {{ PLATFORMS.include? "android" }}

thanks

1 Like

Hi @blackjid,

Please see: How to use `runif:` to check git last commit message - #2 by viktorbenei

Quote:

(More info in the linked discussion)

If you have any questions just let us know! :slight_smile: