From a7dbf202999dde32a56d9b27fe1acb2e1085f8a9 Mon Sep 17 00:00:00 2001 From: Kyle Somers <17753062+kylesomers@users.noreply.github.com> Date: Tue, 25 Jun 2024 13:07:56 -0500 Subject: [PATCH] docs: modify git fetch-depth for docs ci (#121) --- .github/workflows/docs.yml | 2 +- Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 62b8cb7f..eb95f6cc 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -46,7 +46,7 @@ jobs: - name: Checkout code uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 with: - fetch-depth: 0 + fetch-depth: 1 ref: ${{ inputs.git_ref }} - name: Git client setup run: | diff --git a/Makefile b/Makefile index a47bd203..e9659943 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ docs-build: ## Build the docs using docker. Example: `make docs-build VERSION=v1 docker build -f ./docs/Dockerfile -t docs:$(VERSION) . \ --build-arg GIT_USER_NAME="$(GIT_USER_NAME)" \ --build-arg GIT_USER_EMAIL="$(GIT_USER_EMAIL)" \ - --build-arg GITHUB_ACTIONS="$(GITHUB_ACTIONS)" \ + --build-arg GITHUB_ACTIONS="$(GITHUB_ACTIONS)" --no-cache .PHONY: docs-deploy @@ -38,7 +38,7 @@ docs-deploy: ## Build and deploy the docs using 'mike'. Example: `make docs-depl docker build -f ./docs/Dockerfile -t docs:$(VERSION) . \ --build-arg GIT_USER_NAME="$(GIT_USER_NAME)" \ --build-arg GIT_USER_EMAIL="$(GIT_USER_EMAIL)" \ - --build-arg GITHUB_ACTIONS="$(GITHUB_ACTIONS)" \ + --build-arg GITHUB_ACTIONS="$(GITHUB_ACTIONS)" --no-cache docker run -t docs:$(VERSION) mike deploy $(VERSION) ${ALIAS} --update-aliases docker run -t docs:$(VERSION) mike set-default $(ALIAS) --push --allow-empty