Skip to content

Commit 0343f5f

Browse files
authored
Merge pull request #3570 from qinezh/patch-2
Fix bug in appveyor.yml
2 parents 899e57f + 6a08487 commit 0343f5f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

appveyor.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ build_script:
1414
$host.SetShouldExit(1)
1515
}
1616
17-
$unzip_path = "C:\projects\azure-powershell-release"
17+
$unzip_path = "C:\projects\release"
1818
$unzip_file = $unzip_path + "zip"
1919
Invoke-WebRequest ($response.Content | ConvertFrom-Json).zipball_url -OutFile $unzip_file
2020
7z x $unzip_file -o"$unzip_path"
@@ -38,7 +38,7 @@ build_script:
3838
{
3939
continue
4040
}
41-
if((gc $psd1 | Out-String) -notmatch "ModuleVersion\s*=\s*$pattern")
41+
if((gc $psd1 | Out-String) -notmatch "ModuleVersion\s*=\s*'$pattern'")
4242
{
4343
continue
4444
}
@@ -48,12 +48,12 @@ build_script:
4848
test: off
4949
shallow_clone: true
5050
on_success:
51-
- git clone -q --branch=%target_branch% %content_repo% %TEMP%\Azure
52-
- cd %TEMP%\Azure
53-
- ps: ls $global:output -dir | % { copy $_.FullName (ls -dir | select -First 1) -Recurse -Force }
5451
- git config --global credential.helper store
5552
- ps: ac "$env:USERPROFILE\.git-credentials" "https://$($env:github_access_token):[email protected]`n"
5653
- git config --global user.email %email%
5754
- git config --global user.name %name%
55+
- git clone -q --branch=%target_branch% %content_repo% %TEMP%\Azure
56+
- cd %TEMP%\Azure
57+
- ps: ls $global:output -dir | % { copy $_.FullName (ls -dir | select -First 1) -Recurse -Force }
5858
- git add -A
5959
- git diff --quiet --exit-code --cached || git commit -m "Sync docs from source code repo to content repo." && git push origin %target_branch% && appveyor AddMessage "Content Updated"

0 commit comments

Comments
 (0)