iptv/.github/workflows/auto-update.yml

33 lines
783 B
YAML
Raw Normal View History

2019-10-06 21:24:02 +02:00
name: auto-update
on:
schedule:
2019-10-08 04:26:20 +02:00
- cron: '*/5 * * * *'
2019-10-06 21:24:02 +02:00
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 }}
2019-10-06 21:35:29 +02:00
PULL_REQUEST_BRANCH: auto-update/patch
2019-10-06 22:00:17 +02:00
PULL_REQUEST_TITLE: '[Bot] Auto-update playlists'
2019-10-06 21:24:02 +02:00
PULL_REQUEST_BODY: >
This pull request is auto-generated. It formats links and generates grouped playlists.