Django Migration from Github actions

Hello I have a database in Google Cloud Platform and I am trying to figure out how to run a django migration from github actions once I have deployed my app to GCP's App engine.

I have tried using cloud_sql_proxy, but cannot get it to connect to my database. I would whitelist github actions ip address but I am not really sure what the ip addresses is either.

Here is the config I currently have:

name: deploy-app-to-gcp
    branches: [ main]
      - '**'
    name: Migrate Database
    runs-on: ubuntu-latest
      - uses: actions/checkout@v1
      - name: get env file
        run: echo "${{secrets.ENV_FILE}}" | base64 --decode > ./env_variables.yaml
      - name: Set up Python 3.9
        uses: actions/setup-python@v2
          python-version: 3.9
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install -r requirements.txt
      - name: Get Cloud SQL Proxy
        run: |
          wget -O cloud_sql_proxy
          chmod +x cloud_sql_proxy
      - name: migrate Database
        run: |
          pip install ruamel.yaml
          set -a; eval $(python -c 'from pathlib import Path;from ruamel.yaml import YAML; print( "".join( [f"{k}={v!r}\n" for k, v in YAML().load(Path("env_variables.yaml"))["env_variables"].items() if not k.__eq__("DATABASE_CONNECTION_ADDRESS")] ) )'); set +a
          ./cloud_sql_proxy -instances=com-cjoshmartin:us-central1:cms-db=tcp:5432 &
          python migrate
          exit 0;

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum