Skip to content

bookshelf

bookshelf #39

Workflow file for this run

name: bookshelf
on:
schedule:
- cron: "34 0/6 * * *"
permissions:
contents: write
jobs:
reading:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.20.4
- name: Install deps
run: npm ci
- name: Check for reading updates
run: npm run reading
- name: Check for changes
id: check_changes
run: |
if [[ -n $(git status --porcelain) ]]; then
echo "changes=true" >> "$GITHUB_OUTPUT";
fi
- name: Commit results
if: steps.check_changes.outputs.changes == 'true'
run: |
git pull
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A && git commit -m "📖 update currently reading"
git push origin main