mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
filter migrate no-op determination to only migrations dir
ref https://github.com/collinbarrett/FilterLists/pull/1411#issuecomment-591088973
This commit is contained in:
parent
75da9b3f3a
commit
033e56e4d8
1 changed files with 2 additions and 1 deletions
|
|
@ -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..."
|
||||
|
|
|
|||
Loading…
Reference in a new issue