mdav43 / read-action

πŸ“š This GitHub action tracks the books that you've read by updating the `_data/read.yml` file in your repository.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

read-action

Test

.github/workflows/read.yml

This GitHub action tracks the books that you've read by updating the _data/read.yml file in your repository.

Create a new issue with the book's ISBN in the title. The action will then fetch the book's metadata using node-isbn and add it to _data/read.yml in your repository, always sorting by the date you finished the book.

Creating an issue

The title of your issue must start with the ISBN of the book:

1234567890

The action will automatically set the date that you finished the book (dateFinished) to today. To specify a different date that you finished the book, add the date after the ISBN in YYYY-MM-DD format.

1234567890 2020-06-12

If you add content to the body of the comment, the action will add it as the value of notes.

Change the output file

If you'd like to save your books to another file, in the action's with, set readFileName to your desired path.

with:
  readFileName: "archive/books.yml"

Change node-isbn providers

You can specify the ISBN providers that you want to use, in the order you need them to be invoked. If setting more than one provider, separate each with a comma:

with:
  providers: "openlibrary,google"

About

πŸ“š This GitHub action tracks the books that you've read by updating the `_data/read.yml` file in your repository.


Languages

Language:JavaScript 100.0%