Skip to content

Commit 29c769b

Browse files
authored
Update README.md
1 parent 4b33f6b commit 29c769b

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff 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
7385
uses: tj-django/[email protected]
7486
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: |

0 commit comments

Comments
 (0)