mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 08:30:06 -04:00
Create auto-update.yml
This commit is contained in:
parent
dfebca32e7
commit
9464fed11b
1 changed files with 37 additions and 0 deletions
37
.github/workflows/auto-update.yml
vendored
Normal file
37
.github/workflows/auto-update.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
name: auto-update
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
jobs:
|
||||
format:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
- name: Format Playlists
|
||||
run: node scripts/format.js
|
||||
- name: Commit Changes
|
||||
run: |
|
||||
git config user.name github-actions
|
||||
git config user.email github-actions@github.com
|
||||
git add .
|
||||
git diff-index --quiet HEAD || git commit -m "[Bot] Format playlists"
|
||||
git push
|
||||
update-readme:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Update Guide
|
||||
run: ./run.sh
|
||||
- name: Commit Changes
|
||||
run: |
|
||||
git config user.name github-actions
|
||||
git config user.email github-actions@github.com
|
||||
git add .
|
||||
git diff-index --quiet HEAD || git commit -m "[Bot] Update Guide"
|
||||
git pull
|
||||
git push
|
Loading…
Add table
Add a link
Reference in a new issue