Commit 4fe52df64038316d02e92bf9816ef9074946d91a

Edward Thomson 2019-12-03T18:26:24

Merge pull request #5316 from libgit2/ethomson/publish_docs_on_master ci: only push docs from the libgit2/libgit2 repo

1
2
3
4
5
6
7
8
9
10
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'))