Skip to content

Commit

Permalink
debugging live testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jspaaks committed Jan 30, 2024
1 parent c5217ce commit ea6fcb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@ export const main = async (): Promise<void> => {
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)
Expand Down

0 comments on commit ea6fcb8

Please sign in to comment.