Skip to content

Commit d8f2c51

Browse files
committed
git credential
1 parent 397287a commit d8f2c51

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.ci/azure-pipelines.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,10 @@ jobs:
225225
- powershell: |
226226
git init
227227
git checkout -b $(GH_DOC_BRANCH)
228-
git config --local user.name "pyansys-ci-bot"
229-
git config --local user.email "$(GH_EMAIL)"
230-
git config --local http.https://github.com/.extraheader "AUTHORIZATION: Basic ${GH_PAT}"
228+
git config --global credential.helper store
229+
ps: Set-Content -Path "$HOME\.git-credentials" -Value "https://$GH_PAT:[email protected]`n" -NoNewline
230+
git config --global user.name "pyansys-ci-bot"
231+
git config --global user.email "$(GH_EMAIL)"
231232
New-Item -ItemType file .nojekyll
232233
git add .
233234
git commit -m "Documentation generated by $(Build.DefinitionName)"

0 commit comments

Comments
 (0)