diff --git a/azurefunctions-extensions-base/azurefunctions/extensions/base/__init__.py b/azurefunctions-extensions-base/azurefunctions/extensions/base/__init__.py index cf1eb24..ce14e73 100644 --- a/azurefunctions-extensions-base/azurefunctions/extensions/base/__init__.py +++ b/azurefunctions-extensions-base/azurefunctions/extensions/base/__init__.py @@ -39,4 +39,4 @@ "RequestSynchronizer", ] -__version__ = '1.0.0' +__version__ = '1.0.0b1' diff --git a/eng/templates/official/jobs/publish-release.yml b/eng/templates/official/jobs/publish-release.yml index 353481a..53e5e14 100644 --- a/eng/templates/official/jobs/publish-release.yml +++ b/eng/templates/official/jobs/publish-release.yml @@ -8,8 +8,6 @@ jobs: os: linux steps: - powershell: | - $githubUser = "$(GithubUser)" - $githubToken = "$(GithubPat)" $githubToken = "$(GithubPat)" $newLibraryVersion = "$(NewLibraryVersion)" $extensionName= "$(ExtensionName)" @@ -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" @@ -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)"