File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,15 @@ $ python manage.py makemigrations -b master --fix
5353> * To get this action to work you'll need to install [ django-migration-fixer] ( #installation ) and update your ` INSTALLED_APPS ` setting
5454
5555``` yaml
56- ...
56+ name : Fix django migrations
57+
58+ on :
59+ pull_request :
60+ branches :
61+ - main
62+
63+ jobs :
64+ fix-migrations :
5765 runs-on : ubuntu-latest
5866 steps :
5967 - uses : actions/checkout@v2
@@ -69,6 +77,10 @@ $ python manage.py makemigrations -b master --fix
6977 run : |
7078 pip install -U pip
7179
80+ - name : Install project dependencies
81+ run : |
82+ make install
83+
7284 - name : Run django-migration-fixer
73857486 with :
@@ -80,7 +92,7 @@ $ python manage.py makemigrations -b master --fix
8092 with :
8193 files : |
8294 /path/to/migrations
83-
95+
8496 - name : Commit migration changes
8597 if : steps.verify-changed-files.outputs.files_changed == 'true'
8698 run : |
You can’t perform that action at this time.
0 commit comments