Nightly autoupdate #973
This file contains 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: Nightly autoupdate | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
autoupdate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.PAT }} | |
# There are import isues with pystache with latest 3.9. | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install bs4 pystache requests zeep | |
- name: Regenerate the library | |
run: | | |
python skautis_api_gen.py | |
- name: Run import test | |
run: | | |
python regrtest.py | |
- name: Commit and push changes (if any) | |
run: | | |
./finish.sh |