ci(github-actions): add automatic ytdl update into github actions

This commit is contained in:
raiper34
2025-02-01 15:49:13 +01:00
parent f539a22757
commit 9baf3b9eb7
+30
View File
@@ -0,0 +1,30 @@
name: update-ytdl
on:
workflow_dispatch:
branches: ytdl-update-automated
schedule:
- cron: '0 0 * * *'
jobs:
update-ytdl:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: '18.x'
- name: Update @distube/ytdl-core
run: npm update @distube/ytdl-core -w backend
- name: Commit and create PR
uses: peter-evans/create-pull-request@v3
with:
title: 'build(ytdl): Upgrade ytdl package (automated)'
branch: 'ytdl-update-automated'
commit-message: 'build(ytdl): Upgrade ytdl package (automated)'
- name: Merge ytdl-update-automated PR
run: gh pr merge --merge --auto "1"
env:
GH_TOKEN: ${{ github.token }}