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 · 4 comments
Open

using an environment variable as the current_version #15

OdedRub opened this issue Feb 9, 2023 · 4 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/[email protected]).
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

@asheliahut
Copy link

Note to people here if they still care:
${{ env.VARIABLE_NAME }} is how you inject those environment variables.
@SarahJaine @OdedRub

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

4 participants