Merge pull request #5316 from libgit2/ethomson/publish_docs_on_master ci: only push docs from the libgit2/libgit2 repo
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 75e4ef7..5ee741c 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -174,4 +174,4 @@ jobs:
echo 'password $(GITHUB_PAT)' >> ~/.netrc
git push origin gh-pages
displayName: 'Publish Documentation'
- condition: eq(variables['Build.Reason'], 'IndividualCI')
+ condition: and(eq(variables['Build.Repository.Name'], 'libgit2/libgit2'), eq(variables['Build.Reason'], 'IndividualCI'))