filter migrate no-op determination to only migrations dir

ref https://github.com/collinbarrett/FilterLists/pull/1411#issuecomment-591088973
This commit is contained in:
Collin M. Barrett 2020-02-25 17:02:23 -06:00
parent 75da9b3f3a
commit 033e56e4d8

View file

@ -112,8 +112,9 @@ steps:
condition: and(eq(variables['abortJustMigrated.aborted'], 'false'), succeeded())
inputs:
targetType: inline
workingDirectory: server/src/FilterLists.Data.Migrations
script: |
DIFF=$(git status -s | wc -l)
DIFF=$(git status -s -- . | wc -l)
echo "$DIFF file(s) changed"
if (( $DIFF != 3 )) ; then
echo "No-op migration. Effective EF migrations add/change 3 files (.Designer.cs, .cs, and *ModelSnapshot.cs). Abandoning..."