-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.06 KB
/
read.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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