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

37 lines
877 B
YAML
Raw Normal View History

2019-10-06 22:24:02 +03:00
name: auto-update
on:
schedule:
2019-10-08 05:40:31 +03:00
- cron: '0 0 * * *'
2019-10-06 22:24:02 +03: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
2019-10-09 05:46:48 +03:00
- name: "npm run generate:readme"
run: npm run generate:readme
2019-10-06 22:24:02 +03:00
- name: Create Pull Request
uses: peter-evans/create-pull-request@v1.5.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2019-10-09 05:46:48 +03:00
COMMIT_MESSAGE: 'Auto-update repository'
2019-10-06 22:35:29 +03:00
PULL_REQUEST_BRANCH: auto-update/patch
2019-10-09 05:46:48 +03:00
PULL_REQUEST_TITLE: '[Bot] Auto-update repository'
2019-10-06 22:24:02 +03:00
PULL_REQUEST_BODY: >
2019-10-09 05:46:48 +03:00
This pull request is auto-generated by auto-update action.