This commit is contained in:
freearhey 2019-09-09 16:44:12 +03:00
commit 58e06a8eeb
2 changed files with 31 additions and 5 deletions

View File

@ -1,4 +1,4 @@
name: Generate grouped playlists name: Format playlists
on: on:
push: push:
@ -22,14 +22,11 @@ jobs:
- name: "npm run format" - name: "npm run format"
run: npm run format run: npm run format
- name: "npm run generate"
run: npm run generate
- name: Commit all changes - name: Commit all changes
uses: stefanzweifel/git-auto-commit-action@v2.0.0 uses: stefanzweifel/git-auto-commit-action@v2.0.0
with: with:
commit_author_email: free.arhey@gmail.com commit_author_email: free.arhey@gmail.com
commit_author_name: Arhey commit_author_name: Arhey
commit_message: Generate grouped playlists commit_message: Formatted playlists
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

29
.github/workflows/generate.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Generate grouped playlists
on:
schedule:
- cron: '0 0 * * *'
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 generate"
run: npm run generate
- name: Commit all changes
uses: stefanzweifel/git-auto-commit-action@v2.0.0
with:
commit_author_email: free.arhey@gmail.com
commit_author_name: Arhey
commit_message: Generated grouped playlists
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}