# Auto-increment app version if the app was approved by AppStore

**URL:** <https://discuss.bitrise.io/t/auto-increment-app-version-if-the-app-was-approved-by-appstore/22392>\
**Category:** iOS\
**Created:** [March 20, 2023, 12:20pm UTC](https://discuss.bitrise.io/t/auto-increment-app-version-if-the-app-was-approved-by-appstore/22392 "2023-03-20T12:20:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![akim89](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@akim89](https://discuss.bitrise.io/u/akim89)\
**Post date:** [March 20, 2023, 12:20pm UTC](https://discuss.bitrise.io/t/auto-increment-app-version-if-the-app-was-approved-by-appstore/22392/1 "2023-03-20T12:20:00Z")

</div>

Hi all,  
I have two separate numbers for version and build. Let’s say version starts from 1.0.1 and build - 1. We made some multiple updates and now we have build number - 17 and version stays the same - 1.0.1. We send it for approving to AppStore. Right now I have to change version number manually from 1.0.1 to 1.1.1 (with build number I don’t have any problems because it takes the value from $BITRISE\_BUILD\_NUMBER). How can I check (if it possible) if our app is approved and increment version number automatically?

---

<div class="post-metadata">

**Author:** ![mickael\_ohmyapp](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/mickael_ohmyapp/32/3452_2.png) [@mickael\_ohmyapp](https://discuss.bitrise.io/u/mickael_ohmyapp)\
**Post date:** [March 21, 2023, 10:48pm UTC](https://discuss.bitrise.io/t/auto-increment-app-version-if-the-app-was-approved-by-appstore/22392/2 "2023-03-21T22:48:28Z")

</div>

Hello, when your app is approved, you receive an email.

So you could use a service like IFTT or Google Apps Scripts (if it’s a gmail address) to detect an approval and then call [Bitrise API](https://devcenter.bitrise.io/en/api/triggering-and-aborting-builds.html#triggering-a-new-build-with-the-api) to trigger a workflow “bump version”.

For the bump part, you can read my post here:

> **[Bumping your iOS app version with any CI](https://medium.com/@mickael_ohmyapp/bumping-your-ios-app-version-with-any-ci-76e0a800bb50)**
>
> Project setup and automation
