From cbe2c9fbdc8322881b6ae3fd90586b7656d155ec Mon Sep 17 00:00:00 2001 From: raiper34 Date: Sat, 1 Feb 2025 16:18:04 +0100 Subject: [PATCH] ci(github-actions): add automatic ytdl update into github actions --- .github/workflows/auto-merge.yml | 4 +--- .github/workflows/update-ytdl.yml | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index af8a24a..7e3e3b8 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -1,7 +1,5 @@ name: Auto-merge Github Actions -on: - repository_dispatch: - types: [ create-pull-request ] +on: pull_request permissions: pull-requests: write diff --git a/.github/workflows/update-ytdl.yml b/.github/workflows/update-ytdl.yml index 943eeb9..e77cdf7 100644 --- a/.github/workflows/update-ytdl.yml +++ b/.github/workflows/update-ytdl.yml @@ -12,6 +12,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + with: + token: ${{ secrets.AUTOUPDATE_PAT }} - name: Set up Node uses: actions/setup-node@v2 with: @@ -24,3 +26,5 @@ jobs: title: 'build(ytdl): Upgrade ytdl package (automated)' branch: 'ytdl-update-automated' commit-message: 'build(ytdl): Upgrade ytdl package (automated)' + token: ${{ secrets.AUTOUPDATE_PAT }} +