Skip to content

Commit d907216

Browse files
committed
chore: Revert credentials script to powershell
1 parent 48a0f15 commit d907216

File tree

1 file changed

+9
-22
lines changed

1 file changed

+9
-22
lines changed

appveyor.yml

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -46,29 +46,16 @@ install:
4646
nuget install -Verbosity quiet -OutputDirectory packages secure-file -ExcludeVersion
4747
4848
before_build:
49-
SET CREDENTIALS_DIRECTORY="C:\projects\sdk-credentials"
50-
51-
52-
git config --global credential.helper store
53-
54-
55-
ECHO "https://$(%CREDENTIALS_GITHUB_TOKEN%):[email protected]`n">>"%USERPROFILE%\.git-credentials"
56-
57-
58-
IF NOT DEFINED APPVEYOR_PULL_REQUEST_NUMBER (
59-
60-
ECHO "APPVEYOR_PULL_REQUEST_NUMBER is null, downloading credentials to %CREDENTIALS_DIRECTORY%"
61-
62-
git clone https://github.ibm.com/germanatt/sdk-credentials.git %CREDENTIALS_DIRECTORY%
63-
64-
) ELSE (
65-
66-
ECHO "APPVEYOR_PULL_REQUEST_NUMBER is %APPVEYOR_PULL_REQUEST_NUMBER% - skip cloning credentials"
67-
68-
)
69-
70-
49+
- ps: >-
50+
if($env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null)
51+
{
52+
Write-Output "APPVEYOR_PULL_REQUEST_NUMBER is null, cloning credentials."
53+
54+
git clone https://$env:[email protected]/germanatt/sdk-credentials.git C:\projects\sdk-credentials
55+
}
56+
7157
dotnet restore
58+
7259
build:
7360
project: IBM.Watson.sln
7461
verbosity: minimal

0 commit comments

Comments
 (0)