iptv/.github/workflows/publish.yml

50 lines
1.2 KiB
YAML
Raw Normal View History

2019-11-03 11:08:11 +01:00
name: Publish playlists
on:
schedule:
2019-11-19 17:26:20 +01:00
- cron: '0 1 * * *'
2019-11-03 11:08:11 +01:00
jobs:
deploy:
2019-11-03 11:08:11 +01:00
runs-on: ubuntu-latest
steps:
- name: Checkout
2019-11-19 16:50:37 +01:00
uses: actions/checkout@v1
2019-11-03 11:08:11 +01:00
- name: Install Dependencies
run: npm install
- name: Generate Playlists
run: npm run generate
- name: Deploy to GitHub Pages
2019-11-19 17:13:46 +01:00
uses: JamesIves/github-pages-deploy-action@master
env:
2019-11-19 16:50:37 +01:00
ACCESS_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }}
2019-11-03 11:08:11 +01:00
BASE_BRANCH: master
BRANCH: gh-pages
2019-11-19 17:13:46 +01:00
FOLDER: .gh-pages
2019-11-03 11:08:11 +01:00
update-readme:
runs-on: ubuntu-latest
2019-11-13 14:36:35 +01:00
needs: deploy
2019-11-03 11:08:11 +01:00
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install Dependencies
run: npm install
- name: Update README.md
run: npm run update-readme
- name: Create Pull Request
uses: peter-evans/create-pull-request@v1.5.1
env:
2019-11-03 11:17:42 +01:00
GITHUB_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }}
2019-11-03 11:08:11 +01:00
COMMIT_MESSAGE: 'Update README.md'
PULL_REQUEST_BRANCH: bot-patch
PULL_REQUEST_TITLE: '[Bot] Update README.md'
PULL_REQUEST_LABELS: automerge
PULL_REQUEST_BODY: >
This pull request is auto-generated by GitHub action.