You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
722 B

  1. on:
  2. push:
  3. branches:
  4. - feature/auto-update-data
  5. jobs:
  6. deploy:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: actions/checkout@master
  10. - name: Build the data and create local changes
  11. uses: actions/setup-python@v1
  12. with:
  13. python-version: '3.6.10'
  14. architecture: x64
  15. - run: |
  16. pip install -r requirements.txt
  17. python process.py
  18. - name: Commit files
  19. run: |
  20. git config --local user.email "action@github.com"
  21. git config --local user.name "GitHub Action"
  22. git commit -m "Daily auto-update of the data" -a
  23. - name: Push changes
  24. uses: ad-m/github-push-action@master
  25. with:
  26. github_token: ${{ secrets.GITHUB_TOKEN }}