diff --git a/.github/workflows/update-yt-dlp.yml b/.github/workflows/update-yt-dlp.yml index a1acfed3..19812327 100644 --- a/.github/workflows/update-yt-dlp.yml +++ b/.github/workflows/update-yt-dlp.yml @@ -21,8 +21,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - with: - token: ${{ secrets.GH_PAT_AUTO_UPDATE }} - name: Set up Python uses: actions/setup-python@v4 with: @@ -34,8 +32,10 @@ jobs: 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@ytptube" - git config --global user.name "AutoUpdater" - git commit -m 'upgraded yt-dlp' Pipfile.lock - git push fi + - name: Create Pull Request + uses: peter-evans/create-pull-request@v5 + with: + delete-branch: true + +