| @ -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 }} | |||||