Skip to content

Applying the 'printSemVersion' task during release. #83

@Eteryz

Description

@Eteryz

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'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions