From 8f733663c6aba6e62fce2f8bd969d3ab20b1fbe3 Mon Sep 17 00:00:00 2001 From: Gavin Zhang Date: Tue, 2 Jan 2024 15:56:10 -0800 Subject: [PATCH] Allow setup sam to continue when failed to get release tag --- 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 ""; } }