Skip to content

Commit

Permalink
test: third case
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKalho committed Oct 21, 2024
1 parent e4e0cef commit f9a7fcf
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/migrations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ jobs:
echo "Changes look valid."
prevent-changes:
run: |
EXISTING_MIGRATIONS=$(git ls-tree -r HEAD --name-only | grep "core/alembic/versions/.*\.py")
- name: prevent-changes-to-existing-migrations
run: |
EXISTING_MIGRATIONS=$(git ls-tree -r HEAD --name-only | grep "core/alembic/versions/.*\.py")
for migration in $EXISTING_MIGRATION; do
if git diff --name-only HEAD | grep "$migration"; then
echo "An already existing migration should not be edited!"
exit 1
fi
done
for migration in $EXISTING_MIGRATION; do
if git diff --name-only HEAD | grep "$migration"; then
echo "An already existing migration should not be edited!"
exit 1
fi
done

0 comments on commit f9a7fcf

Please sign in to comment.