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"