All checks were successful
Apply Kuberentes Configs / update-repo (push) Successful in 1s
Apply Kuberentes Configs / update-infrastructure (push) Successful in 1s
ZFS Backup / update-infrastructure (push) Successful in 48s
Libation / update-repo (push) Successful in 0s
Libation / sync-audiobooks (push) Successful in 5s
Manage Jellyfin Playlists / update-repo (push) Successful in 1s
Manage Jellyfin Playlists / run-python (push) Successful in 51s
31 lines
1014 B
YAML
31 lines
1014 B
YAML
name: Manage Jellyfin Playlists
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 * * * *"
|
|
jobs:
|
|
update-repo:
|
|
uses: ./.gitea/workflows/update-repo.yml
|
|
runs-on: home-server
|
|
run-python:
|
|
runs-on: home-server
|
|
steps:
|
|
- name: Run Python script
|
|
env:
|
|
JELLYFIN_USER: ${{ secrets.JELLYFIN_USER }}
|
|
JELLYFIN_PASSWORD: ${{ secrets.JELLYFIN_PASSWORD }}
|
|
working-directory: /home/gitea-runner/infrastructure
|
|
run: |
|
|
echo "$JELLYFIN_USER $JELLYFIN_PASSWORD" > /home/gitea-runner/jellyfin_credentials.txt
|
|
docker build -t jellyfin_management -f jellyfin/Dockerfile .
|
|
docker run --rm \
|
|
-e JELLYFIN_USER=$JELLYFIN_USER \
|
|
-e JELLYFIN_PASSWORD=$JELLYFIN_PASSWORD \
|
|
jellyfin_management \
|
|
-m jellyfin.update_all_songs_playlist
|
|
docker run --rm \
|
|
-e JELLYFIN_USER=$JELLYFIN_USER \
|
|
-e JELLYFIN_PASSWORD=$JELLYFIN_PASSWORD \
|
|
jellyfin_management \
|
|
-m jellyfin.update_unindexed
|