From 8aee2f4a7fe48544e1468ff08d28b88b99021291 Mon Sep 17 00:00:00 2001 From: GZ Date: Tue, 2 Jan 2024 16:07:50 -0800 Subject: [PATCH] Allow setup sam to continue when failed to get release tag (#93) --- dist/index.js | 2 +- lib/setup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index a1145ec..b257430 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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 ""; } } diff --git a/lib/setup.js b/lib/setup.js index 2e6ce1c..9d3d968 100644 --- a/lib/setup.js +++ b/lib/setup.js @@ -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 ""; } }