Add webhook support #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Make sure to run manage.py makemigrations if you change models | |
on: [pull_request] | |
jobs: | |
is-migration-diff-clean: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: "Upgrade pip" | |
run: "pip install --upgrade pip" | |
- name: "Install package" | |
run: pip install ".[dev]" | |
- name: "You forgot to run manage.py makemigrations for model changes" | |
run: | | |
python src/manage.py makemigrations --dry-run # Run extra time for debug output | |
python src/manage.py makemigrations --dry-run | grep 'No changes detected' | |