From 6e986a88ca8217e8546e8648a149e2be7aa087da Mon Sep 17 00:00:00 2001 From: Alex Shnitman Date: Tue, 17 Aug 2021 23:53:49 +0300 Subject: switched to the yt-dlp fork of youtube-dl (closes #41) --- .github/workflows/update-youtube-dl.yml | 34 --------------------------------- .github/workflows/update-yt-dlp.yml | 33 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/update-youtube-dl.yml create mode 100644 .github/workflows/update-yt-dlp.yml (limited to '.github/workflows') diff --git a/.github/workflows/update-youtube-dl.yml b/.github/workflows/update-youtube-dl.yml deleted file mode 100644 index 4c23b2a..0000000 --- a/.github/workflows/update-youtube-dl.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: update-youtube-dl - -on: - schedule: - - cron: '0 0 * * *' - -jobs: - update-youtube-dl : - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v2 - with: - token: ${{ secrets.AUTOUPDATE_PAT }} - - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.8' - - - name: Update youtube-dl - run: | - pip install pipenv - pipenv sync - VER=`pipenv run pip list -o | awk '$1 == "youtube-dl" {print $3}'` - if [ -n "$VER" ]; then - pipenv update --selective-upgrade youtube-dl - git config --global user.email "updater@metube" - git config --global user.name "AutoUpdater" - git add Pipfile.lock - git commit -m 'upgraded youtube-dl' - git push - fi diff --git a/.github/workflows/update-yt-dlp.yml b/.github/workflows/update-yt-dlp.yml new file mode 100644 index 0000000..5754774 --- /dev/null +++ b/.github/workflows/update-yt-dlp.yml @@ -0,0 +1,33 @@ +name: update-yt-dlp + +on: + schedule: + - cron: '0 0 * * *' + +jobs: + update-yt-dlp : + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v2 + with: + token: ${{ secrets.AUTOUPDATE_PAT }} + - + name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.8' + - + 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 --selective-upgrade 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 -- cgit