From 75ad7f58fc1a317822df1f8cc2fcc0008240dc74 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Mon, 9 Sep 2019 15:55:37 +0300 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..cf852696bd --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: Generate grouped playlists + +on: + push: + branches: + - master + paths: + - 'channels/*' + +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: Generate grouped playlists + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}