From eb438bd0dd50ea439ce6c4b36bf0961aa2bbe81d Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Wed, 12 Feb 2020 10:39:58 -0600 Subject: [PATCH] delay git config until needed --- server/azure-pipelines.migrate.yaml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/server/azure-pipelines.migrate.yaml b/server/azure-pipelines.migrate.yaml index 30ec6fc45..8ef382332 100644 --- a/server/azure-pipelines.migrate.yaml +++ b/server/azure-pipelines.migrate.yaml @@ -17,14 +17,9 @@ steps: # TODO: Replace $SYSTEM_PULLREQUEST_SOURCEREPOSITORYURI with fork's URI. https://stackoverflow.com/q/60188806/2343739 - bash: | - git config --global user.name $GITHUBNAME - git config --global user.email $GITHUBEMAIL git clone $SYSTEM_PULLREQUEST_SOURCEREPOSITORYURI . git checkout $SYSTEM_PULLREQUEST_SOURCEBRANCH displayName: checkout source branch - env: - GitHubName: $(GitHub.Name) - GitHubEmail: $(GitHub.Email) # TODO: Merge latest data/* and server/src/FilterLists.Data.Migrations/* from origin/master. # TODO: If data/* and server/src/FilterLists.Data.Migrations/* change in origin/master, re-trigger this Pipeline. @@ -49,6 +44,15 @@ steps: displayName: install ef dotnet tool condition: and(ne(variables['abortIfJustMigrated.aborted'], 'true'), succeeded()) + - bash: | + git config --global user.name $GITHUBNAME + git config --global user.email $GITHUBEMAIL + displayName: git config + env: + GitHubName: $(GitHub.Name) + GitHubEmail: $(GitHub.Email) + condition: and(ne(variables['abortIfJustMigrated.aborted'], 'true'), succeeded()) + - bash: | MIGLIST=$(dotnet ef migrations list -p FilterLists.Data.Migrations -s FilterLists.Api) echo "$MIGLIST"