From ea6fcb8b0bb87323581055a1d05b4791b1fc4198 Mon Sep 17 00:00:00 2001 From: "Jurriaan H. Spaaks" Date: Tue, 30 Jan 2024 15:26:01 +0100 Subject: [PATCH] debugging live testing workflow --- lib/index.js | 2 +- src/index.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 6c0fa9b..85b8d79 100644 --- a/lib/index.js +++ b/lib/index.js @@ -74,12 +74,12 @@ const main = () => __awaiter(void 0, void 0, void 0, function* () { core.startGroup('payload'); const payload = yield releasing_1.get_payload(metadata); core.endGroup(); + core.debug(`zenodraft = ${zenodraft_1.default}`); // create the deposition as a new version in a new concept or // as a new version in an existing concept: core.startGroup(`creating deposition on ${sandbox === true ? 'Zenodo Sandbox' : 'Zenodo'}`); let version_id; if (concept_id === '') { - console.log(`zenodraft = ${zenodraft_1.default}`); version_id = yield zenodraft_1.default.deposition_create_concept(token, sandbox, verbose); } else { diff --git a/src/index.ts b/src/index.ts index 85c5f8e..c069d8c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -63,12 +63,13 @@ export const main = async (): Promise => { const payload = await get_payload(metadata) core.endGroup() + core.debug(`zenodraft = ${zenodraft}`) + // create the deposition as a new version in a new concept or // as a new version in an existing concept: core.startGroup(`creating deposition on ${sandbox === true ? 'Zenodo Sandbox' : 'Zenodo'}`) let version_id; if (concept_id === '') { - console.log(`zenodraft = ${zenodraft}`) version_id = await zenodraft.deposition_create_concept(token, sandbox, verbose) } else { version_id = await zenodraft.deposition_create_version(token, sandbox, concept_id, verbose)