Run parser #76
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: Run parser | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "30 4 * * 5" | |
push: | |
jobs: | |
RunParser: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run parser | |
shell: pwsh | |
run: | | |
try { | |
$env:PYTHONIOENCODING="utf-8" | |
python3 -m venv venv | |
& ./venv/bin/Activate.ps1 | |
pip install -r requirements.txt | |
python3 main.py | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add . | |
git commit -m "Update data" | |
git push | |
} | |
catch { | |
write-host "No changes made" | |
} |