mirror of
https://github.com/alexta69/metube.git
synced 2025-04-02 20:07:36 +03:00
33 lines
819 B
YAML
33 lines
819 B
YAML
name: update-yt-dlp
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
|
|
jobs:
|
|
update-yt-dlp :
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ secrets.AUTOUPDATE_PAT }}
|
|
-
|
|
name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.11'
|
|
-
|
|
name: Update yt-dlp
|
|
run: |
|
|
pip install pipenv
|
|
pipenv sync
|
|
VER=`pipenv run pip list -o | awk '$1 == "yt-dlp" {print $3}'`
|
|
if [ -n "$VER" ]; then
|
|
pipenv update yt-dlp
|
|
git config --global user.email "updater@metube"
|
|
git config --global user.name "AutoUpdater"
|
|
git commit -m 'upgraded yt-dlp' Pipfile.lock
|
|
git push
|
|
fi
|