Run weekly cron projects #6
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 weekly cron projects | |
on: | |
schedule: | |
- cron: "0 3 * * SAT" # Run every sat | |
jobs: | |
Run-Scheduled-Exports: | |
runs-on: ubuntu-latest | |
env: | |
RAWDATA_API_AUTH_TOKEN: ${{ secrets.RAWDATA_API_AUTH_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Shoot weekly projects | |
run: python extract.py --fetch-scheduled-exports weekly |