Skip to content

Commit 9b313ea

Browse files
changed azure pipes [azurepipelines skip]
1 parent a8bcbbc commit 9b313ea

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

azure-pipelines/master/main.yml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,17 @@ jobs:
185185
npm run doc_gen
186186
displayName: "generate docs"
187187
188+
- powershell: |
189+
$branch = "$(CurrentBranch)"
190+
cd $(Build.SourcesDirectory)/service
191+
$env:GIT_REDIRECT_STDERR = '2>&1'
192+
git config --global user.email "surveyjs.org@gmail.com"
193+
git config --global user.name "surveyjsdeveloper"
194+
git fetch origin $branch
195+
git checkout -B $branch origin/$branch
196+
git reset --hard origin/$branch
197+
displayName: "Git surveyjs/service push updated docs (prepare)"
198+
188199
- task: CopyFiles@2
189200
inputs:
190201
SourceFolder: "$(Build.SourcesDirectory)/survey-library/packages/survey-core/docs"
@@ -203,17 +214,23 @@ jobs:
203214
$env:GIT_REDIRECT_STDERR = '2>&1'
204215
git config --global user.email "surveyjs.org@gmail.com"
205216
git config --global user.name "surveyjsdeveloper"
206-
207-
git fetch origin $branch
208-
git checkout -B $branch origin/$branch
209-
git reset --hard origin/$branch
210-
211217
git add surveyjs.io/App_Data/DocsLibrary
212218
if (git status --porcelain) {
213219
git commit -m "updated survey-library docs for $branch [azurepipelines skip]"
214220
git push origin $branch
215221
}
216-
displayName: "git surveyjs/service push updated docs for $(CurrentBranch)"
222+
displayName: "Git surveyjs/service push updated docs for $(CurrentBranch)"
223+
224+
- powershell: |
225+
$branch = "V2"
226+
cd $(Build.SourcesDirectory)/surveyjs-site-data
227+
$env:GIT_REDIRECT_STDERR = '2>&1'
228+
git config --global user.email "surveyjs.org@gmail.com"
229+
git config --global user.name "surveyjsdeveloper"
230+
git fetch origin $branch
231+
git checkout -B $branch origin/$branch
232+
git reset --hard origin/$branch
233+
displayName: "Git surveyjs-site-data push updated docs (prepare)"
217234
218235
- task: CopyFiles@2
219236
inputs:
@@ -233,11 +250,6 @@ jobs:
233250
$env:GIT_REDIRECT_STDERR = '2>&1'
234251
git config --global user.email "surveyjs.org@gmail.com"
235252
git config --global user.name "surveyjsdeveloper"
236-
237-
git fetch origin $branch
238-
git checkout -B $branch origin/$branch
239-
git reset --hard origin/$branch
240-
241253
git add DocsLibrary
242254
if (git status --porcelain) {
243255
git commit -m "updated survey-library docs for $branch [azurepipelines skip]"

0 commit comments

Comments
 (0)