Skip to content

Firestore Cache (Prod) #161

Firestore Cache (Prod)

Firestore Cache (Prod) #161

name: Firestore Cache (Prod)
on:
schedule:
- cron: '0 0 * * *' # Run daily at midnight
workflow_dispatch:
env:
STORAGE_BUCKET: ${{ secrets.VITE_FIREBASE_STORAGE_BUCKET_PROD }}
jobs:
cache:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
working-directory: backend/
- name: Run cache script (Prod)
run: |
echo '${{ secrets.FIREBASE_CREDS_PROD }}' > creds.json
python cache_script.py
working-directory: backend/