Archive #64
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: Archive | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "30 5 1-7 * 6" # 8:30am on the first 7 days of the month, if it's a Saturday. In other words the first Saturday of the month at 5:30am. | |
jobs: | |
scheduled: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out this repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up python | |
id: set-up-python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install python-dotenv duckdb GitPython google-cloud-storage | |
- name: Archive | |
run: python scripts/archive.py | |
env: | |
GCP_SERVICE_ACCOUNT_JSON: ${{ secrets.GCP_SERVICE_ACCOUNT_JSON }} |