All checks were successful
Apply Kuberentes Configs / update-repo (push) Successful in 0s
Apply Kuberentes Configs / update-infrastructure (push) Successful in 2s
Apply Kuberentes Configs / notify-on-failure (push) Has been skipped
Manage Jellyfin Playlists / update-repo (push) Successful in 0s
Manage Jellyfin Playlists / run-python (push) Successful in 48s
Manage Jellyfin Playlists / notify-on-failure (push) Has been skipped
50 lines
1.6 KiB
YAML
50 lines
1.6 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
|
|
Workflow: ${{ gitea.workflow }}
|
|
Repository: ${{ gitea.repository }}
|
|
Job: run-python
|
|
Status: ${{ needs.run-python.result }}
|
|
action_url: "https://git.alexmickelson.guru/${{ gitea.repository }}/actions/runs/${{ gitea.run_number }}"
|
|
priority: "high"
|
|
tags: "rotating_light,jellyfin"
|