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

using an environment variable as the current_version #15

Open
OdedRub opened this issue Feb 9, 2023 · 3 comments
Open

using an environment variable as the current_version #15

OdedRub opened this issue Feb 9, 2023 · 3 comments

Comments

@OdedRub
Copy link

OdedRub commented Feb 9, 2023

Hi,
I'm trying for some time now to make the incremental versioning automatic by passing the previous version to the plugin as the current_version, but it keeps giving the error "previous version '$ENV' is not a semantic version.
I made sure that the value of environment variable (ENV) is actually a valid semantic version (1.0.6) by printing it in different steps.
Is there anything I need to know regarding this issue?

@christian-draeger
Copy link
Owner

Hi which version of the action are you using?

Cheers

@OdedRub
Copy link
Author

OdedRub commented Feb 12, 2023

Hey, thanks for your response.
I'm using version 1.1.0 (christian-draeger/increment-semantic-version@1.1.0).
Trying to define something like this-

with
current-version: ${ENV}
version-fragment: 'bug'

@SarahJaine
Copy link

Great action; just wanted to "plus 1" this request to allow the current-version to be an environment variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants