Hi, so currently there are 5 workflows in my project:
- Branch => triggered by a push to any branch
- Pull-req => trigger by a creation / update of pull-req
- Master => triggered by a merge to master
- Beta => Manually triggered to push to Testflight for beta testing
- Release => Manually triggered to push for distribution using a tag “release-vx.x.x”
For the Beta
and Release
workflow, I added the Set Xcode Project Build Number
step to set the version and build number. I use the default value for the build number, which is $BITRISE_BUILD_NUMBER. But the problem is, this number is used in all workflows. So if I ran these workflows:
- Branch #1
- Branch #2
- Branch #3
- Pull-req #4
- Master #5
- Branch #6
- Branch #7
- Branch #8
- Branch #9
- Branch #10
- Pull-req #11
- Master #12
- Beta #13
- Branch #14
- Branch #15
- Pull-req #16
- Master #17
- Release #18
The CFBundleVersion
of the Testflight version will be 13, which means the full version will be 1.0 (13)
. And the Release CFBundleVersion
will be 18. But I want it to be 1 and 2 because they are the first and second build in the App Store, respectively. How do I increment the CFBundleVersion
only from those two workflows?
Thanks.