Create auto-update.yml

This commit is contained in:
freearhey 2019-10-06 22:24:02 +03:00
parent b6240c8b15
commit 855bb65059

32
.github/workflows/auto-update.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: auto-update
on:
schedule:
- cron: '*/5 * * * *'
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: "git checkout master"
run: git checkout master
- name: "npm install"
run: npm install
- name: "npm run format"
run: npm run format
- name: "npm run generate"
run: npm run generate
- name: Create Pull Request
uses: peter-evans/create-pull-request@v1.5.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PULL_REQUEST_BRANCH: auto-update/patche
PULL_REQUEST_TITLE: Auto-update playlists
PULL_REQUEST_BODY: >
This pull request is auto-generated. It formats links and generates grouped playlists.