diff --git a/eng/pipelines/templates/stages/archetype-python-release.yml b/eng/pipelines/templates/stages/archetype-python-release.yml index af224ffebe08..ff3347a1b187 100644 --- a/eng/pipelines/templates/stages/archetype-python-release.yml +++ b/eng/pipelines/templates/stages/archetype-python-release.yml @@ -222,7 +222,7 @@ stages: - ${{if ne(artifact.skipPublishDocGithubIo, 'true')}}: - job: PublishGitHubIODocs displayName: Publish Docs to GitHubIO Blob Storage - condition: and(succeeded(), ne(variables['Skip.PublishDocs'], 'true')) + condition: and(succeeded(), ne(variables['Skip.PublishDocs'], 'true'), not(endsWith(variables['Build.Repository.Name'], '-pr'))) dependsOn: PublishPackage pool: @@ -260,7 +260,7 @@ stages: - ${{if ne(artifact.skipPublishDocMs, 'true')}}: - job: PublishDocs displayName: Docs.MS Release - condition: and(succeeded(), ne(variables['Skip.PublishDocs'], 'true')) + condition: and(succeeded(), ne(variables['Skip.PublishDocs'], 'true'), not(endsWith(variables['Build.Repository.Name'], '-pr'))) dependsOn: PublishPackage pool: @@ -383,7 +383,7 @@ stages: - job: PublishDocsToNightlyBranch dependsOn: PublishPackages - condition: and(succeeded(), or(eq(variables['SetDevVersion'], 'true'), and(eq(variables['Build.Reason'],'Schedule'), eq(variables['System.TeamProject'], 'internal')))) + condition: and(succeeded(), or(eq(variables['SetDevVersion'], 'true'), and(eq(variables['Build.Reason'],'Schedule'), eq(variables['System.TeamProject'], 'internal'))), not(endsWith(variables['Build.Repository.Name'], '-pr'))) pool: image: ubuntu-24.04 name: azsdk-pool