Skip to content

Commit

Permalink
fix: Update message when failed to fetch latest version (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinZZ committed Oct 30, 2023
1 parent 0814aef commit f14821b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ async function installUsingNativeInstaller(inputVersion) {
const latestVersion = await getLatestReleaseTag("aws/aws-sam-cli");
// Must be full semantic version; downloads version directly from GitHub
if (latestVersion && !isSemver(latestVersion)) {
core.setFailed("Latest version found must be in the format x.y.z");
core.info(
"Fetched version is not in the format x.y.z. Use latest version without caching."
);
return "";
}
version = latestVersion;
Expand Down
4 changes: 3 additions & 1 deletion lib/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ async function installUsingNativeInstaller(inputVersion) {
const latestVersion = await getLatestReleaseTag("aws/aws-sam-cli");
// Must be full semantic version; downloads version directly from GitHub
if (latestVersion && !isSemver(latestVersion)) {
core.setFailed("Latest version found must be in the format x.y.z");
core.info(
"Fetched version is not in the format x.y.z. Use latest version without caching."
);
return "";
}
version = latestVersion;
Expand Down

0 comments on commit f14821b

Please sign in to comment.