next weekly quiz generator staging #41
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: next weekly quiz generator staging | |
on: | |
schedule: | |
# - cron: "0 17 * * SUN" # MON 00:00 UTC+7, don't use this since it causes an incorrect week range | |
- cron: "0 0 * * MON" | |
workflow_dispatch: | |
jobs: | |
next_weekly_quiz_generator: | |
name: Generate weekly quiz for next week in staging | |
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.9' | |
- name: Generate next quiz problem set | |
run: | | |
pip install -r utils/scripts/requirements.txt | |
python utils/scripts/next_weekly_quiz_generator.py | |
env: | |
FIREBASE_SECRET_KEY_JSON: ${{ secrets.STG_FIREBASE_ADMINSDK_SECRET_KEY_JSON }} |