Drop a link: .url/.txt in _incoming/ is downloaded, verified as a PDF, stored as the book's source PDF; workflow also triggers on link files

This commit is contained in:
Audiobook Producer
2026-10-18 13:25:01 -05:00
parent b72c0464ef
commit 9287ea8e16
6 changed files with 406 additions and 22 deletions
+3 -3
View File
@@ -1,15 +1,15 @@
# Drop a PDF in _incoming/ and commit it. This job turns it into a finished audiobook folder and commits that back.
# Drop a PDF (or a .url/.txt file with a link to a PDF) in _incoming/ and commit it. This job turns it into a finished audiobook folder and commits that back.
# No bot is involved: every step is a deterministic script in _pipeline/.
name: audiobook
on:
push:
branches: [main, 'test/**'] # test/** lets the pipeline be proven on a branch without touching main
paths: ['_incoming/*.pdf'] # only a PDF landing in _incoming/ starts a run
paths: ['_incoming/*.pdf', '_incoming/*.PDF', '_incoming/*.url', '_incoming/*.URL', '_incoming/*.txt'] # a PDF or a link file landing in _incoming/ starts a run
workflow_dispatch:
inputs:
pdf:
description: 'PDF path inside the repo (empty = every PDF waiting in _incoming/; a dry run with nothing waiting uses the Clark book as a regression sample)'
description: 'PDF or .url/.txt link-file path inside the repo (empty = everything waiting in _incoming/; a dry run with nothing waiting uses the Clark book as a regression sample)'
required: false
default: ''
voice_endpoint: