Skip to content

Commit

Permalink
Allow setup sam to continue when failed to get release tag (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinZZ authored Jan 3, 2024
1 parent f14821b commit 8aee2f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ async function getLatestReleaseTag() {
const data = JSON.parse(await response.readBody());
return data.tag_name.substring(1);
} catch (error) {
core.setFailed("Error:", error);
core.info("Unable to get SAM CLI's latest release tag ", error);
return "";
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ async function getLatestReleaseTag() {
const data = JSON.parse(await response.readBody());
return data.tag_name.substring(1);
} catch (error) {
core.setFailed("Error:", error);
core.info("Unable to get SAM CLI's latest release tag ", error);
return "";
}
}
Expand Down

0 comments on commit 8aee2f4

Please sign in to comment.