beets
This commit is contained in:
20
.github/workflows/beets-sync.yml
vendored
Normal file
20
.github/workflows/beets-sync.yml
vendored
Normal 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"
|
||||||
@@ -19,7 +19,7 @@ services:
|
|||||||
# docker exec -it -u 1000 beets bash -c "beet import -is /alex/*"
|
# docker exec -it -u 1000 beets bash -c "beet import -is /alex/*"
|
||||||
|
|
||||||
# background
|
# background
|
||||||
# beet -v import -I -is -q /managed/*
|
# beet -v import -is -q /managed/*
|
||||||
|
|
||||||
|
|
||||||
# beet update -a (updates metadata in local db...)
|
# beet update -a (updates metadata in local db...)
|
||||||
Reference in New Issue
Block a user