mirror of
https://github.com/iptv-org/iptv
synced 2026-03-22 03:41:39 -04:00
Renamee publish.yml to update.yml
This commit is contained in:
48
.github/workflows/update.yml
vendored
Normal file
48
.github/workflows/update.yml
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
name: update
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 1 * * *'
|
||||
jobs:
|
||||
generate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Generate Playlists
|
||||
run: npm run generate
|
||||
|
||||
- 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
|
||||
update-readme:
|
||||
runs-on: ubuntu-latest
|
||||
needs: deploy
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- 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@v3
|
||||
with:
|
||||
token: ${{ secrets.REPO_SCOPED_TOKEN }}
|
||||
commit-message: 'Update README.md'
|
||||
branch: bot-patch
|
||||
title: '[Bot] Update README.md'
|
||||
labels: automerge
|
||||
body: |
|
||||
This pull request is auto-generated by GitHub action.
|
||||
Reference in New Issue
Block a user