All checks were successful
Apply Kuberentes Configs / update-repo (push) Successful in 1s
Apply Kuberentes Configs / update-infrastructure (push) Successful in 3s
Apply Kuberentes Configs / notify-on-failure (push) Has been skipped
Cleanup NixOS Generations / cleanup-generations (push) Successful in 2s
Cleanup NixOS Generations / notify-on-failure (push) Has been skipped
Cleanup Docker / cleanup-docker (push) Successful in 1s
Cleanup Docker / notify-on-failure (push) Has been skipped
ZFS Backup / notify-on-failure (push) Has been skipped
ZFS Backup / update-infrastructure (push) Successful in 1m43s
Libation / update-repo (push) Successful in 0s
Libation / sync-audiobooks (push) Successful in 5s
Libation / notify-on-failure (push) Has been skipped
Manage Jellyfin Playlists / update-repo (push) Successful in 1s
Manage Jellyfin Playlists / run-python (push) Successful in 52s
Manage Jellyfin Playlists / notify-on-failure (push) Has been skipped
46 lines
1.5 KiB
YAML
46 lines
1.5 KiB
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
|
|
|
|
notify-on-failure:
|
|
runs-on: home-server
|
|
needs: run-python
|
|
if: failure()
|
|
uses: ./.gitea/workflows/notify-ntfy.yml
|
|
secrets:
|
|
NTFY_CHANNEL: ${{ secrets.NTFY_CHANNEL }}
|
|
with:
|
|
title: "Jellyfin Playlist Update Failed"
|
|
message: |
|
|
Failed to update Jellyfin playlists
|
|
action_url: "https://git.alexmickelson.guru/${{ gitea.repository }}/actions/runs/${{ gitea.run_number }}"
|
|
priority: "high"
|
|
tags: "rotating_light,jellyfin"
|