From 7a7ab8996bb1ed87f655c304e69427ff6617531f Mon Sep 17 00:00:00 2001 From: Josh Bax Date: Fri, 21 Mar 2025 13:36:12 -0700 Subject: [PATCH] ci: only checkout docs repo when on master --- .github/workflows/docs.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 8866ea06..7c021718 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -45,13 +45,16 @@ jobs: - name: Check out GitHub page repo uses: actions/checkout@v4 + if: github.ref == 'refs/heads/master' with: repository: emacs-eask/emacs-eask.github.io path: emacs-eask.github.io token: ${{ secrets.PAT }} - name: Build doc artifacts with Hugo - run: hugo --destination ../emacs-eask.github.io --minify + run: | + mkdir ../emacs-eask.github.io + hugo --destination ../emacs-eask.github.io --minify working-directory: docs # TODO: Generate better commit message