Files
jarri-spooty/.github/workflows/update-ytdl.yml
T

31 lines
813 B
YAML

name: update-ytdl
on:
workflow_dispatch:
branches: main
schedule:
- cron: '0 0 * * *'
jobs:
update-ytdl:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.AUTOUPDATE_PAT }}
- 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)'
token: ${{ secrets.AUTOUPDATE_PAT }}