diff --git a/.gitea/workflows/backup-zfs.yml b/.gitea/workflows/backup-zfs.yml index 114bc5a..740ef05 100644 --- a/.gitea/workflows/backup-zfs.yml +++ b/.gitea/workflows/backup-zfs.yml @@ -23,4 +23,23 @@ jobs: --recursive \ --no-privilege-elevation \ data-ssd/media \ - backup/media \ No newline at end of file + backup/media + + notify-on-failure: + runs-on: home-server + needs: update-infrastructure + if: failure() + uses: ./.gitea/workflows/notify-ntfy.yml + secrets: + NTFY_CHANNEL: ${{ secrets.NTFY_CHANNEL }} + with: + title: "ZFS Backup Failed" + message: | + Failed to backup ZFS datasets + Workflow: ${{ gitea.workflow }} + Repository: ${{ gitea.repository }} + Job: update-infrastructure + Status: ${{ needs.update-infrastructure.result }} + action_url: "https://git.alexmickelson.guru/${{ gitea.repository }}/actions/runs/${{ gitea.run_number }}" + priority: "high" + tags: "rotating_light,backup" \ No newline at end of file diff --git a/.gitea/workflows/libation-sync.yml b/.gitea/workflows/libation-sync.yml index 36ad344..3abb7d1 100644 --- a/.gitea/workflows/libation-sync.yml +++ b/.gitea/workflows/libation-sync.yml @@ -18,3 +18,22 @@ jobs: docker compose pull -q docker compose run --rm libation echo "Libation sync completed at $(date)" + + notify-on-failure: + runs-on: home-server + needs: sync-audiobooks + if: failure() + uses: ./.gitea/workflows/notify-ntfy.yml + secrets: + NTFY_CHANNEL: ${{ secrets.NTFY_CHANNEL }} + with: + title: "Libation Sync Failed" + message: | + Failed to sync audiobooks with Libation + Workflow: ${{ gitea.workflow }} + Repository: ${{ gitea.repository }} + Job: sync-audiobooks + Status: ${{ needs.sync-audiobooks.result }} + action_url: "https://git.alexmickelson.guru/${{ gitea.repository }}/actions/runs/${{ gitea.run_number }}" + priority: "high" + tags: "rotating_light,audiobooks" diff --git a/.gitea/workflows/update-playlist.yml b/.gitea/workflows/update-playlist.yml index ffe0edb..b580b05 100644 --- a/.gitea/workflows/update-playlist.yml +++ b/.gitea/workflows/update-playlist.yml @@ -28,3 +28,22 @@ jobs: -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"