Update #7666
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: Update | |
on: | |
schedule: | |
- cron: '0 */3 * * *' | |
workflow_dispatch: | |
jobs: | |
update: | |
name: check, update and commit | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@master | |
- name: setup python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '3.9' | |
- name: setup python and locale | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r update/requirements.txt | |
- name: update catalogo | |
run: | | |
python3 update/update_oryx.py | |
id: update_catalogo | |
- name: commit | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "ukraine-bot" | |
git add -A | |
git diff --quiet && git diff --staged --quiet || (git commit -m "[ci] $(cat time)"; git push -q "https://[email protected]/mauforonda/ukraine.git" master) |