This commit is contained in:
2025-10-07 21:28:08 -06:00
parent 956bacafac
commit f5a1e17101
2 changed files with 21 additions and 1 deletions

20
.github/workflows/beets-sync.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Beets
on:
schedule:
# Run 4 times a day: 6am, 12pm, 6pm, 12am UTC
- cron: '0 6,12,18,0 * * *'
workflow_dispatch: # Allow manual trigger
jobs:
sync-audiobooks:
runs-on: [home-server]
steps:
- name: Run Beets sync
working-directory: /home/github/infrastructure/infrastructure/home-server/beets
run: |
echo "Starting Beets audiobook sync at $(date)"
docker compose pull
docker compose up -d
docker exec -it -u 1000 beets bash -c "beet import -i -q /managed/*"
docker compose down
echo "Beets sync completed"