Browse Source

[gh actions][s]: update the data automatically and push to github.

master
anuveyatsu 4 years ago
parent
commit
8ca3ead5be
1 changed files with 27 additions and 0 deletions
  1. +27
    -0
      .github/workflows/actions.yml

+ 27
- 0
.github/workflows/actions.yml View File

@ -0,0 +1,27 @@
on:
push:
branches:
- feature/auto-update-data
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build the data and create local changes
uses: actions/setup-python@v1
with:
python-version: '3.6.2'
architecture: x64
- run: |
pip install -r requirements.txt
python process.py
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m "Daily auto-update of the data" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

Loading…
Cancel
Save