Skip to content

[EngSys] Restrict docs release jobs to public repo only#48123

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/update-docs-release-jobs-again
Draft

[EngSys] Restrict docs release jobs to public repo only#48123
Copilot wants to merge 2 commits intomainfrom
copilot/update-docs-release-jobs-again

Conversation

Copy link
Contributor

Copilot AI commented Feb 25, 2026

Docs publishing jobs (update docs.ms metadata, publish to github.io) were running even when pipelines executed from the -pr mirror repo (Azure/azure-sdk-for-java-pr), which is unintended.

Changes

Added ne(variables['Build.Repository.Name'], 'Azure/azure-sdk-for-java-pr') to the condition of all docs-related jobs in both release pipeline templates:

  • archetype-java-release-batch.yml

    • PublishDocsMs (Release stage)
    • PublishDocs (Release stage)
    • PublishDocsToNightlyBranch (Integration stage)
  • archetype-java-release-patch.yml

    • PublishDocsMs (Release stage)
    • PublishDocs (Release stage)

Example of the updated condition pattern:

condition: and(succeeded(), ne(variables['Skip.PublishDocs'], 'true'), ne(variables['Build.Repository.Name'], 'Azure/azure-sdk-for-java-pr'))

docindex.yml is not modified.

Original prompt

This section details on the original issue you should resolve

<issue_title>[EngSys] Docs release jobs should only run if executed from public repo</issue_title>
<issue_description>Docs release jobs (e.g. update docs.ms metadata, publish to github.io docs) should only run when the pipeline is being executed from a public repo (i.e. repo name does not have -pr in the suffix).
</issue_description>

<agent_instructions>Use the following form as a template for how to do this:

condition: and(succeeded(), ne(variables['Build.Repository.Name'], 'Azure/azure-sdk-for-java-pr'))

Edit only the releases, not the docindex.yml file. </agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: danieljurek <2158838+danieljurek@users.noreply.github.com>
Copilot AI changed the title [WIP] Update docs release jobs to check public repo condition [EngSys] Restrict docs release jobs to public repo only Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[EngSys] Docs release jobs should only run if executed from public repo

2 participants