How to update content of App Env Var?

Hi,

Is there any way to update content of an environment variable we define in App Environment Variables?
My goal is to store versionCode in an environment variable, and auto increment and update the value after each build.

1 Like

Hi @gokhanarik, please see our recommended approach here: https://devcenter.bitrise.io/builds/build-numbering-and-app-versioning/

Hi @bitce, unfortunately this doesn’t answer my question. I don’t want to use Build Number as versionCode. I only want to increment versionCode if the build is from the master branch.

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

I can not think of a solution for this. With that said, you could add your repo twice and only use one project for release builds or something like that. Cheers