Skip to content

Commit

Permalink
fix for strict version with the v prefix (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
glehmann authored Mar 2, 2023
1 parent afedd8a commit cce953f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
7 changes: 6 additions & 1 deletion dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71535,7 +71535,12 @@ function run() {
var tag_name;
if (isValidSemVer) {
core.info(`Using provided strict version ${range}`);
tag_name = `v${range}`;
if (range[0] === "v") {
tag_name = range;
}
else {
tag_name = `v${range}`;
}
}
else {
// only grab the version from the api if the version provided by the user
Expand Down
2 changes: 1 addition & 1 deletion dist/setup/index.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/setup-earthly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ async function run() {
var tag_name: string;
if (isValidSemVer) {
core.info(`Using provided strict version ${range}`);
tag_name = `v${range}`;
if (range[0] === "v") {
tag_name = range;
} else {
tag_name = `v${range}`;
}
} else {
// only grab the version from the api if the version provided by the user
// doesn't appear to be a valid semver
Expand Down

0 comments on commit cce953f

Please sign in to comment.