From 69011733a57047a4c14c7b2afb146524e57247fc Mon Sep 17 00:00:00 2001 From: Genius Patrick <74176172+geniuspatrick@users.noreply.github.com> Date: Fri, 2 Jun 2023 10:54:54 +0800 Subject: [PATCH] docs: make sure that only the main branch of the main repo will deploy pages (#666) --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 9be0f52a3..f8e9a96f7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -24,5 +24,5 @@ jobs: - name: Build site run: mkdocs build - name: Deploy to gh-pages - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'mindspore-lab/mindcv' run: mkdocs gh-deploy --force