Django migrations not working from GitHub Actions

Viewed 487

I have the command heroku run -a ${{ secrets.HEROKU_APP_NAME }} python manage.py migrate set to run after pushing master to Heroku. It runs without errors (below is it's the output):

Running python manage.py migrate on ***... ?
Running python manage.py migrate on ***... done

But the migrations don't actually run. What could be the problem?

1 Answers

Found the answer in the Heroku docs. Essentially, add release: python manage.py migrate as the first line in the Procfile. It doesn't tell me why it's not working from the GH action, but it gets the job done.

Related