How to run workflow from script step?

I can not understand what you need. Sorry.

https://app.bitrise.io/build/ cbdb1e7726e1485c
https://app.bitrise.io/build/ dc652165c538229c

Thanks, but what issue are you seeing here? There are only one script step and the variables aren’t empty

I have workflow run_script with script step. In this step I get json file, call workflow build_ios by curl passing a variable from json. In build_ios this variable is empty.

Well, you’ve set these values up in the Advanced tab specifically for this workflow, so the same values are expected to not be present on a different workflow by default.

You could also try using workflow specific env_vars: https://devcenter.bitrise.io/builds/env-vars-secret-env-vars/#setting-an-env-var-in-everyin-a-specific-workflow

I add APP_BRAND to App Environment Variables and Workflows Environment Variables. Did not help.

Well, if you add it to the App environment variables, that will overwrite every workflow’s env_vars, including the ones you are triggering from your script and the advanced tab, so that could be one reason it’s not working. There’s a processing order for env vars: https://devcenter.bitrise.io/bitrise-cli/most-important-concepts/#availability-order-of-environment-variables

I tried many options and none have worked yet.

Would you consider contacting us on our on-site chat instead? It’s generally more convenient to solve complicated issues there.

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