-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Hi There-
I have a suggestion for a possible new feature that would be helpful to a lot of devs:
Would it be possible to get this action to have a property to increment the version number and display version number for us by 1
E.G
currently the action has these properties:
uses: managedcode/MAUIAppVersion@v1
with:
csproj: 'path/to/my-project.csproj'
version: ${{ github.run_number }} # to keep value unique
displayVersion: '1.0.0'
printFile: true # optional
add 2 new (optional) properties of :
incrementVersion: true
incrementDisplayVersion: Build
incrementDisplayVersion can have Major / Minor / Build ( these correspond to which part of the version # to increase by one - eg in a display version they map to which position to increase by one in the version # eg 1.2.3 if I put build that is position 3 so version 1.2.3 would become 1.2.4)
incrementVersion: true increases the Version # that is currently in the proj file by 1.
NOTE: when these increment options are specified then you dont need to supply a version or display version to the action as it will read the existing ones and increase them.
so we have:
uses: managedcode/MAUIAppVersion@v1
with:
csproj: 'path/to/my-project.csproj'
version: ${{ github.run_number }} # to keep value unique
displayVersion: '1.0.0'
printFile: true # optional
incrementVersion: true
incrementDisplayVersion: Build
This will increment the current Version # in minor position by 1 and also increase the buildDisplayVersion by 1.
By adding this it will make doing releases of new builds a lot more seamless rather than the dev having to manually work out version numbers.