Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
"RequestSynchronizer",
]

__version__ = '1.0.0'
__version__ = '1.0.0b1'
19 changes: 0 additions & 19 deletions eng/templates/official/jobs/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ jobs:
os: linux
steps:
- powershell: |
$githubUser = "$(GithubUser)"
$githubToken = "$(GithubPat)"
$githubToken = "$(GithubPat)"
$newLibraryVersion = "$(NewLibraryVersion)"
$extensionName= "$(ExtensionName)"
Expand All @@ -20,9 +18,6 @@ jobs:
git config --global user.name "AzureFunctionsPython"
git config --global user.email "azfunc@microsoft.com"

# Create GitHub credential
$credential = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes("${githubUser}:${githubToken}"))

# Heading to Artifact Repository
Write-Host "Operating based on $stagingDirectory/azure-functions-python-extensions"
git checkout -b "$extensionName/release/$newLibraryVersion"
Expand All @@ -36,20 +31,6 @@ jobs:
# Create release branch release/X.Y.Z
Write-Host "Creating release branch release/$newLibraryVersion"
git push --repo="https://$githubToken@github.com/Azure/azure-functions-python-extensions.git"

# Create PR
Write-Host "Creating PR draft in GitHub"
$body = (@{head="$newBranch";base="dev";body="Python Extension [$extensionName] Version [$newLibraryVersion]";draft=$true;maintainer_can_modify=$true;title="build: update $extensionName version to $newLibraryVersion"} | ConvertTo-Json -Compress)
$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-extensions/pulls"

# Return Value
if ($response.StatusCode -ne 201) {
Write-Host "Failed to create PR in Azure Functions Python Extensions"
exit -1
}

$draftUrl = $response | ConvertFrom-Json | Select -expand url
Write-Host "PR draft created in $draftUrl"

} else {
Write-Host "NewLibraryVersion $newLibraryVersion is malformed (example: 1.5.0)"
Expand Down