Skip to content

Commit 9d56ef7

Browse files
committed
update
1 parent f3e0603 commit 9d56ef7

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

eng/templates/official/jobs/publish-release.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,13 @@ jobs:
88
os: linux
99
steps:
1010
- powershell: |
11-
$githubUser = "$(GithubUser)"
1211
$githubToken = "$(GithubPat)"
1312
$newLibraryVersion = "$(NewLibraryVersion)"
1413
1514
if($newLibraryVersion -match '(\d)+.(\d)+.(\d)+') {
1615
# Create GitHub credential
1716
git config --global user.name "AzureFunctionsPython"
1817
git config --global user.email "[email protected]"
19-
20-
# Create GitHub credential
21-
$credential = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes("${githubUser}:${githubToken}"))
2218
2319
# Heading to Artifact Repository
2420
Write-Host "Operating based on $stagingDirectory/azure-functions-python-library"
@@ -34,20 +30,6 @@ jobs:
3430
Write-Host "Creating release branch release/$newLibraryVersion"
3531
git push --repo="https://[email protected]/Azure/azure-functions-python-library.git"
3632
37-
# Create PR
38-
Write-Host "Creating PR draft in GitHub"
39-
$body = (@{head="$newBranch";base="dev";body="Python SDK Version [$newLibraryVersion]";draft=$true;maintainer_can_modify=$true;title="build: update Python SDK Version to $newLibraryVersion"} | ConvertTo-Json -Compress)
40-
$response = Invoke-WebRequest -Headers @{"Cache-Control"="no-cache";"Content-Type"="application/json";"Authorization"="Basic $credential";"Accept"="application/vnd.github.v3+json"} -Method Post -Body "$body" -Uri "https://api.github.com/repos/Azure/azure-functions-python-library/pulls"
41-
42-
# Return Value
43-
if ($response.StatusCode -ne 201) {
44-
Write-Host "Failed to create PR in Azure Functions Python Library"
45-
exit -1
46-
}
47-
48-
$draftUrl = $response | ConvertFrom-Json | Select -expand url
49-
Write-Host "PR draft created in $draftUrl"
50-
5133
} else {
5234
Write-Host "NewLibraryVersion $newLibraryVersion is malformed (example: 1.5.0)"
5335
exit -1

0 commit comments

Comments
 (0)