mirror of
https://github.com/chidiwilliams/buzz.git
synced 2026-03-16 23:55:51 +01:00
Fix yt-dlp dependencies and add auto-update workflow
This commit is contained in:
parent
0f77deb17b
commit
de9dfae5f1
2 changed files with 46 additions and 1 deletions
45
.github/workflows/update-ytdlp.yml
vendored
Normal file
45
.github/workflows/update-ytdlp.yml
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
name: Update yt-dlp
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *' # Run daily at midnight
|
||||
workflow_dispatch: # Allow manual triggering
|
||||
|
||||
jobs:
|
||||
update-ytdlp:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v4
|
||||
with:
|
||||
version: "latest"
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version-file: ".python-version"
|
||||
|
||||
- name: Update yt-dlp
|
||||
run: uv lock --upgrade yt-dlp
|
||||
|
||||
- name: Check for changes
|
||||
id: git-check
|
||||
run: |
|
||||
git diff --exit-code uv.lock || echo "changed=true" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Create Pull Request
|
||||
if: steps.git-check.outputs.changed == 'true'
|
||||
uses: peter-evans/create-pull-request@v6
|
||||
with:
|
||||
commit-message: "Update yt-dlp dependency"
|
||||
title: "Update yt-dlp dependency"
|
||||
body: |
|
||||
Automated update of yt-dlp to the latest version.
|
||||
|
||||
This ensures YouTube downloads continue working since YouTube updates its site frequently.
|
||||
branch: update-ytdlp
|
||||
labels: dependencies
|
||||
delete-branch: true
|
||||
|
|
@ -20,7 +20,7 @@ dependencies = [
|
|||
"dataclasses-json>=0.6.4,<0.7",
|
||||
"numpy>=1.21.2,<2",
|
||||
"requests>=2.31.0,<3",
|
||||
"yt-dlp>=2025.11.12,<2026",
|
||||
"yt-dlp>=2025.11.12",
|
||||
"stable-ts>=2.19.1,<3",
|
||||
"faster-whisper>=1.2.1,<2",
|
||||
"openai-whisper==20250625",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue