updated ytdlp_workflow
This commit is contained in:
parent
73944fd47c
commit
723c47d045
1 changed files with 5 additions and 0 deletions
5
.github/workflows/update-yt-dlp.yml
vendored
5
.github/workflows/update-yt-dlp.yml
vendored
|
|
@ -26,16 +26,21 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
- name: Update yt-dlp
|
- name: Update yt-dlp
|
||||||
|
id: ytdlp_update
|
||||||
run: |
|
run: |
|
||||||
pip install pipenv
|
pip install pipenv
|
||||||
pipenv sync
|
pipenv sync
|
||||||
VER=`pipenv run pip list -o | awk '$1 == "yt-dlp" {print $3}'`
|
VER=`pipenv run pip list -o | awk '$1 == "yt-dlp" {print $3}'`
|
||||||
if [ -n "$VER" ]; then
|
if [ -n "$VER" ]; then
|
||||||
|
echo "YTLDLP_VER=${VER}" >> "$GITHUB_OUTPUT"
|
||||||
pipenv update yt-dlp
|
pipenv update yt-dlp
|
||||||
fi
|
fi
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v5
|
uses: peter-evans/create-pull-request@v5
|
||||||
with:
|
with:
|
||||||
|
title: "Update yt-dlp"
|
||||||
|
commit-message: "Update yt-dlp to ${{ steps.ytdlp_update.outputs.YTLDLP_VER }}"
|
||||||
|
body: "This is an automated request to update yt-dlp dependency to ${{ steps.ytdlp_update.outputs.YTLDLP_VER }}"
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue