mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Create update-codes.yml
This commit is contained in:
parent
11c6e5cf7c
commit
794b5b0f59
1 changed files with 23 additions and 0 deletions
23
.github/workflows/update-codes.yml
vendored
Normal file
23
.github/workflows/update-codes.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
name: update-codes
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
|
jobs:
|
||||||
|
update:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm install
|
||||||
|
- name: Update Codes
|
||||||
|
run: npm run update-codes
|
||||||
|
- 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 codes"
|
||||||
|
git pull
|
||||||
|
git push
|
Loading…
Add table
Add a link
Reference in a new issue