Skip to content

Commit

Permalink
Update message when failed to fetch latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinZZ committed Oct 30, 2023
1 parent 0814aef commit 7e301b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ 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 7e301b6

Please sign in to comment.