Skip to content

Book (9781407042503) #51

Book (9781407042503)

Book (9781407042503) #51

Workflow file for this run

name: Read
run-name: Book (${{ inputs.isbn }})
# Grant the action permission to write to the repository
permissions:
contents: write
# Trigger the action
on:
workflow_dispatch:
inputs:
isbn:
description: The book's ISBN. Required.
required: true
type: string
status:
description: Should be either 'reading' or 'finished'.
type: string
tags:
description: Add tags to categorize the book. Separate each tag with a comma. Optional.
type: string
# Set up the steps to run the action
jobs:
update-library:
runs-on: macOS-latest
name: Read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Read
uses: ./actions/read/
with:
thumbnail-width: 600
- name: Commit updated read file
run: |
git pull
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A && git commit -m "Add “${{ env.BookTitle }}” to reading list"
git push