ci(github-actions): add automatic ytdl update into github actions
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
name: Auto-merge Github Actions
|
||||
on:
|
||||
repository_dispatch:
|
||||
types: [ create-pull-request ]
|
||||
|
||||
permissions:
|
||||
pull-requests: write
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
automerge:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.actor == 'github-actions'
|
||||
steps:
|
||||
- uses: peter-evans/enable-pull-request-automerge@v3
|
||||
with:
|
||||
pull-request-number: ${{ github.event.pull_request.number }}
|
||||
@@ -2,7 +2,7 @@ name: update-ytdl
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
branches: ytdl-update-automated
|
||||
branches: main
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
@@ -24,7 +24,3 @@ jobs:
|
||||
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 }}
|
||||
|
||||
Reference in New Issue
Block a user