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

closed #4

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

0 Likes

#5

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

0 Likes