From 033e56e4d8dc9c5355804c899c6c6d6ac0c4b2c1 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Tue, 25 Feb 2020 17:02:23 -0600 Subject: [PATCH] filter migrate no-op determination to only migrations dir ref https://github.com/collinbarrett/FilterLists/pull/1411#issuecomment-591088973 --- server/azure-pipelines.migrate.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/azure-pipelines.migrate.yaml b/server/azure-pipelines.migrate.yaml index ff01c7b4d..a7a2865f9 100644 --- a/server/azure-pipelines.migrate.yaml +++ b/server/azure-pipelines.migrate.yaml @@ -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..."