Files
epg/.github/workflows/update-codes.yml
2021-05-04 16:04:20 +03:00

24 lines
594 B
YAML

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