Commit 44ec8b5cdf960cfeb66284a3cd5bdd8c14aefedf

Edward Thomson 2021-11-09T09:38:53

Merge pull request #6108 from libgit2/ethomson/docs_ci ci: only update docs on push

1
2
3
4
5
6
7
8
9
10
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 572f025..e805b1b 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -300,4 +300,4 @@ jobs:
     - name: Push documentation branch
       working-directory: source
       run: git push origin gh-pages
-      if: github.event_name != 'pull_request' && github.repository == 'libgit2/libgit2'
+      if: github.event_name == 'push' && github.repository == 'libgit2/libgit2'