From be5b3c3925ac574cd5fe4c03594e2937582ecbe2 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Wed, 4 Jan 2023 20:56:21 +0000 Subject: [PATCH] Fix node version incompatibility error --- dist/index.js | 4 ++-- src/upload-artifact.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 77d3829..3c0f64c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5229,8 +5229,8 @@ function run() { } } } - catch (err) { - core.setFailed(err.message); + catch (error) { + core.setFailed(error.message); } }); } diff --git a/src/upload-artifact.ts b/src/upload-artifact.ts index d78e069..44c74bf 100644 --- a/src/upload-artifact.ts +++ b/src/upload-artifact.ts @@ -68,8 +68,8 @@ async function run(): Promise { ) } } - } catch (err) { - core.setFailed(err.message) + } catch (error) { + core.setFailed((error as Error).message) } }