Collect data #96
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: Collect data | |
on: | |
push: | |
branches: | |
- 'main' | |
schedule: | |
- cron: '0 12 * * *' | |
jobs: | |
create: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11.5' | |
cache: 'pipenv' | |
- name: Install pipenv | |
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python | |
- name: collect | |
run: pipenv install && pipenv run python main.py | |
- name: Commit new map | |
run: | | |
git config --global user.name 'Collect Bot' | |
git config --global user.email '[email protected]' | |
git add . | |
git commit -m "Add data for today" | |
git pull -r | |
git push |