Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
rajbos committed Oct 21, 2023
1 parent 6025818 commit 8bd00ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion make.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,18 @@ function PushLocalRepoToRemote {
Write-Host "Running in CI mode!"
# configure the PAT we have inside the remote url
#sample url: https://xpirit@dev.azure.com/xpirit/GHAzDo%20Internal%20Bootcamp/_git/ghazdo-4664
$gitUrl = $gitUrl -replace "https://", "https://$($env:AZURE_DEVOPS_CREATE_PAT)@"
$gitUrl = $gitUrl -replace "https://", "https://x:$($env:AZURE_DEVOPS_PAT)@"
Write-Host "New git url: [$gitUrl]"
}

Write-Host "Setting the remote"
# add the remote
git remote add $repoName $gitUrl #*> $null

Write-Host "Pushing to the remote"
# push to the new remote
git push $repoName #*> $null
Write-Host "After pushing to the remote"

# go back to the original folder
Set-Location $PSScriptRoot
Expand Down

0 comments on commit 8bd00ed

Please sign in to comment.