From 7734c654a7febb1af41a515f581cfd63ef4a290a Mon Sep 17 00:00:00 2001 From: Li Jie Date: Sun, 17 Nov 2024 16:36:09 +0800 Subject: [PATCH] doc: make doc test use current ref --- .github/workflows/doc.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index f0f36d3e..70062c6b 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -24,9 +24,7 @@ jobs: run: npx embedme --verify README.md doc_test: - continue-on-error: true strategy: - fail-fast: false matrix: os: - macos-latest @@ -58,6 +56,14 @@ jobs: run: | set -e set -x + git() { + if [ "$1" = "clone" ]; then + # do nothing because we already have the branch + cd .. + else + command git "$@" + fi + } source doc/_readme/scripts/install_llgo.sh - name: Test doc code blocks