From ba97e855dcb5b74f8f4ca5831b855264fc30c4cb Mon Sep 17 00:00:00 2001 From: Yurii Serhiichuk Date: Wed, 3 Jan 2024 16:24:06 +0100 Subject: [PATCH] More logs --- dist/index.js | 3 +++ index.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/dist/index.js b/dist/index.js index 2fb19f2..3a7c3f2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -122164,8 +122164,10 @@ const fs = __nccwpck_require__(7147); async function getArtifact(name) { try { + core.debug("Listing all artifacts.") const allArtifacts = await artifactClient.listArtifacts(); core.warning(`AllArtifacts: ${JSON.stringify(allArtifacts)}`) + core.debug(`Retrieving artifact with name '${name}'.`) const getArtifactResponse = await artifactClient.getArtifact(name); core.info( `Artifact ${getArtifactResponse.artifact.name} exists @@ -122173,6 +122175,7 @@ async function getArtifact(name) { ); return getArtifactResponse; } catch (err) { + core.debug(`Error details: ${JSON.stringify(err)}`) core.info(`Artifact ${name} does not exist.`); } return null; diff --git a/index.js b/index.js index 2a31cd3..51060fc 100644 --- a/index.js +++ b/index.js @@ -4,8 +4,10 @@ const fs = require("fs"); async function getArtifact(name) { try { + core.debug("Listing all artifacts.") const allArtifacts = await artifactClient.listArtifacts(); core.warning(`AllArtifacts: ${JSON.stringify(allArtifacts)}`) + core.debug(`Retrieving artifact with name '${name}'.`) const getArtifactResponse = await artifactClient.getArtifact(name); core.info( `Artifact ${getArtifactResponse.artifact.name} exists @@ -13,6 +15,7 @@ async function getArtifact(name) { ); return getArtifactResponse; } catch (err) { + core.debug(`Error details: ${JSON.stringify(err)}`) core.info(`Artifact ${name} does not exist.`); } return null;