How to update content of App Env Var?

environment-variable
#1

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.

0 Likes

#2

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

0 Likes

#3

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.

0 Likes