2019-08-27 20:32:08 +02:00
|
|
|
name: Generate grouped playlists
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2019-08-27 21:39:57 +02:00
|
|
|
paths:
|
|
|
|
- 'channels/*'
|
2019-08-27 20:32:08 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
generate:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2019-08-27 22:31:15 +02:00
|
|
|
|
|
|
|
- name: "git checkout master"
|
|
|
|
run: git checkout master
|
|
|
|
|
2019-08-27 20:34:45 +02:00
|
|
|
- name: "npm install"
|
|
|
|
run: npm install
|
2019-08-27 20:32:08 +02:00
|
|
|
|
|
|
|
- name: "npm run generate"
|
|
|
|
run: npm run generate
|
2019-08-27 22:23:58 +02:00
|
|
|
|
2019-08-27 20:59:58 +02:00
|
|
|
- name: "git add"
|
2019-08-27 20:48:57 +02:00
|
|
|
run: git add .
|
|
|
|
|
2019-08-27 20:59:58 +02:00
|
|
|
- name: "git config user.name"
|
|
|
|
run: git config user.name freearhey
|
|
|
|
|
|
|
|
- name: "git config user.email"
|
|
|
|
run: git config user.email free.arhey@gmail.com
|
|
|
|
|
|
|
|
- name: "git commit -m"
|
2019-08-27 20:48:57 +02:00
|
|
|
run: git commit -m "Generated grouped playlists"
|
2019-08-27 21:56:02 +02:00
|
|
|
|
|
|
|
- name: "git remote set-url origin"
|
2019-08-27 22:06:33 +02:00
|
|
|
run: git remote set-url origin https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git
|
2019-08-27 22:23:58 +02:00
|
|
|
|
2019-08-27 22:26:52 +02:00
|
|
|
- name: "git branch"
|
|
|
|
run: git branch
|
2019-08-27 22:23:58 +02:00
|
|
|
|
2019-08-27 21:27:08 +02:00
|
|
|
- name: "git push origin master"
|
2019-08-27 22:23:58 +02:00
|
|
|
run: git push origin dev
|