-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hi
If you apply the 'releaseVersion' task and, for example, put tag 0.1.0, then the 'printInfoVersion' and 'printVersion' tasks output 0.1.0, but the 'printSemVersion' task outputs '0.1.0-sha.22f24d'.
There is such a situation:
For dev development we want to use versions '0.1.0-sha.22f24d'.
But when the release comes, we would like to drop the 'sha' part and get the answer '0.1.0'.
Can we add the 'enableShaRelease' flag, which will be 'true' by default? (Can be called differently: includeShaInRelease, includeCommitHashInRelease)
If 'enableShaRelease'= true and we have a release, then the 'printSemVersion' task will produce the result as before '0.1.0-sha.22f24d1'.
If 'enableShaRelease'= false and we have a release, then the 'printSemVersion' task will produce the following result:
'0.1.0'.