Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: Add function that outputs the type of version change #16

Open
SaschaMann opened this issue Nov 24, 2019 · 2 comments
Open

Idea: Add function that outputs the type of version change #16

SaschaMann opened this issue Nov 24, 2019 · 2 comments
Labels
breaking change enhancement New feature or request

Comments

@SaschaMann
Copy link
Collaborator

SaschaMann commented Nov 24, 2019

It would be useful to automatically apply labels depending on how the version changes, e.g. major, minor, patch, dev.

To make this easy, a function that either prints this information directly or the old and new version to stdout in a machine-readable format would be required. The labelling itself can be handled in the workflow/CI script.

@DilumAluthge DilumAluthge added the enhancement New feature or request label Nov 24, 2019
@DilumAluthge
Copy link
Member

Sounds like a good idea to me!

@SaschaMann
Copy link
Collaborator Author

SaschaMann commented Dec 3, 2019

I just found out about ::set-output. Printing "::set-output name=master_version::v1.0.0" and "::set-output name=pr_version::v1.1.0", and/or "::set-output name=change_type::{major|minor|patch|dev}" would make it easy to use the output in later steps.

Then one can access it with ${{ steps.<VersionVigilanteStepId>.outputs.change_type }}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants