-
-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (35 loc) · 964 Bytes
/
update_card_pool.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Update card pool
on:
workflow_dispatch
env:
DEBUG: False
USE_GCS_STATICS: False
defaults:
run:
working-directory: ./alteredbuilder
jobs:
update_card_pool:
name: Update the card pool
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Configure Google Cloud SQL Auth Proxy
uses: mattes/gce-cloudsql-proxy-action@v1
with:
creds: ${{ secrets.GCP_GITHUB_SA_JSON }}
instance: ${{ secrets.CLOUD_SQL_INSTANCE }}
port: 5432
- name: Update the card pool
run: python manage.py update_card_pool
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
DATABASE_URL: ${{ secrets.MIGRATION_DATABASE_URL }}