Skip to content

Commit

Permalink
Log
Browse files Browse the repository at this point in the history
Update index.js

Log
  • Loading branch information
katydecorah committed Dec 31, 2024
1 parent 720e940 commit d8e039a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122019,6 +122019,8 @@ function cleanBook(options, book) {
const identifier = isLibrofm
? getLibrofmId(inputIdentifier)
: inputIdentifier;
// Github log "book"
(0,core.info)(`Book information: ${JSON.stringify(book, null, 2)}`);
return {
identifier,
identifiers: {
Expand Down
5 changes: 4 additions & 1 deletion src/providers/isbn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Isbn, { Book } from "@library-pals/isbn";
import { BookParams } from "..";
import { NewBook } from "../new-book";
import { formatDescription, getLibrofmId } from "../utils";
import { exportVariable, getInput, warning } from "@actions/core";
import { exportVariable, getInput, warning, info } from "@actions/core";

export async function getIsbn(
options: BookParams,
Expand Down Expand Up @@ -54,6 +54,9 @@ export function cleanBook(options: BookParams, book: Book): NewBook {
? getLibrofmId(inputIdentifier)
: inputIdentifier;

// Github log "book"
info(`Book information: ${JSON.stringify(book, null, 2)}`);

return {
identifier,
identifiers: {
Expand Down

0 comments on commit d8e039a

Please sign in to comment.