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) } }