Save latest data #534
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Save latest data | |
| on: | |
| schedule: | |
| - cron: 50 16 * * 1-5 | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.11 | |
| - run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - run: python main.py | |
| - run: | | |
| git config user.email "actions@github.com" | |
| git config user.name "GitHub Actions" | |
| git add output/* | |
| git commit -am "Update latest [skip ci]" | |
| - uses: ad-m/github-push-action@master | |
| with: | |
| branch: ${{ github.head_ref }} |