Create update-codes.yml

This commit is contained in:
freearhey 2021-05-04 16:04:20 +03:00
parent 11c6e5cf7c
commit 794b5b0f59

23
.github/workflows/update-codes.yml vendored Normal file
View 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