iptv/.github/workflows/update.yml

49 lines
1.2 KiB
YAML
Raw Normal View History

2021-01-02 08:41:16 +01:00
name: update
2019-11-03 11:08:11 +01:00
on:
2020-12-18 07:32:21 +01:00
workflow_dispatch:
2019-11-03 11:08:11 +01:00
schedule:
2020-12-18 07:20:16 +01:00
- cron: '0 1 * * *'
2019-11-03 11:08:11 +01:00
jobs:
2021-01-02 08:41:16 +01:00
generate:
2019-11-03 11:08:11 +01:00
runs-on: ubuntu-latest
steps:
2020-12-18 07:20:16 +01:00
- name: Checkout
uses: actions/checkout@v1
- name: Install Dependencies
run: npm install
- name: Generate Playlists
2021-01-16 15:15:33 +01:00
run: node scripts/generate.js
2020-12-18 07:20:16 +01:00
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@master
env:
ACCESS_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }}
BASE_BRANCH: master
BRANCH: gh-pages
FOLDER: .gh-pages
2019-11-03 11:08:11 +01:00
update-readme:
runs-on: ubuntu-latest
2021-01-05 15:42:54 +01:00
needs: generate
2019-11-03 11:08:11 +01:00
steps:
2020-12-18 07:20:16 +01:00
- name: Checkout
uses: actions/checkout@v2
- name: Install Dependencies
run: npm install
- name: Update README.md
2021-01-16 15:15:33 +01:00
run: node scripts/update-readme.js
2020-12-18 07:20:16 +01:00
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
2021-01-02 08:41:16 +01:00
with:
token: ${{ secrets.REPO_SCOPED_TOKEN }}
commit-message: 'Update README.md'
branch: bot-patch
title: '[Bot] Update README.md'
labels: automerge
body: |
2019-11-03 11:08:11 +01:00
This pull request is auto-generated by GitHub action.