Skip to content

Commit fde4a41

Browse files
committed
Work CI-CD
- Update PS1 to update VS Code extension repo. ***NO_CI***
1 parent 0fe110d commit fde4a41

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

azure-pipelines/update-dependencies.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Set-Location "$env:Agent_TempDirectory" | Out-Null
2121

2222
$repoName = 'nf-VSCodeExtension'
2323

24-
# clone repo and checkout develop branch
24+
# clone repo and checkout main branch
2525
Write-Debug "Init and featch $repoName repo"
2626

2727

@@ -32,8 +32,8 @@ git config --global user.name nfbot
3232
git config --global user.email nanoframework@outlook.com
3333
git config --global core.autocrlf true
3434

35-
Write-Host "Checkout develop branch..."
36-
git checkout --quiet develop | Out-Null
35+
Write-Host "Checkout main branch..."
36+
git checkout --quiet main | Out-Null
3737

3838
####################
3939
# VS Code extension
@@ -42,7 +42,7 @@ Write-Host "Updating nanoFramework.Tools.FirmwareFlasher version in VS Code exte
4242

4343
Set-Location nanoFirmwareFlasher | Out-Null
4444

45-
git checkout tags/v$packageTargetVersion
45+
git checkout --quiet tags/v$packageTargetVersion
4646

4747
#####################
4848

@@ -88,10 +88,10 @@ if ($repoStatus -ne "")
8888
git -c http.extraheader="AUTHORIZATION: $auth" push --set-upstream origin $newBranchName > $null
8989

9090
# start PR
91-
# we are hardcoding to 'develop' branch to have a fixed one
91+
# we are hardcoding to 'main' branch to have a fixed one
9292
# this is very important for tags (which don't have branch information)
9393
# considering that the base branch can be changed at the PR there is no big deal about this
94-
$prRequestBody = @{title="$prTitle";body="$commitMessage";head="$newBranchName";base="develop"} | ConvertTo-Json
94+
$prRequestBody = @{title="$prTitle";body="$commitMessage";head="$newBranchName";base="main"} | ConvertTo-Json
9595
$githubApiEndpoint = "https://api.github.com/repos/nanoframework/$repoName/pulls"
9696
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
9797

0 commit comments

Comments
 (0)