mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 02:47:02 -05:00
Create update-codes.yml
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user