mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
delay git config until needed
This commit is contained in:
parent
819bb25597
commit
eb438bd0dd
1 changed files with 9 additions and 5 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue