Get Map Data #156
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: Get Map Data | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 12 * * *' | |
jobs: | |
get_data: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/[email protected] | |
- name: Install Dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install tqdm | |
- name: Save Secret | |
run: echo "TOKEN = \"{{ secrets.TOKEN }}\"" >> secret.py | |
- name: Generate Data | |
run: python3 get_all_data.py | |
- name: Upload data | |
uses: actions/upload-artifact@v3 | |
with: | |
name: data | |
path: data.pickle | |
- name: Upload data | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Better data | |
path: better_data.pickle |