From 46c77af70df39fc0610e3aa53d7d626549b3f4a5 Mon Sep 17 00:00:00 2001 From: Abel Soares Siqueira Date: Thu, 4 Jul 2024 13:37:37 +0200 Subject: [PATCH] [DEBUG] --- .github/scripts/verify-docs-build-files.sh | 11 +++++++++++ .github/workflows/TestGeneratedPkg.yml | 13 +------------ 2 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 .github/scripts/verify-docs-build-files.sh diff --git a/.github/scripts/verify-docs-build-files.sh b/.github/scripts/verify-docs-build-files.sh new file mode 100644 index 00000000..5c1302ce --- /dev/null +++ b/.github/scripts/verify-docs-build-files.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +while IFS= read -r -d '' f; do + f=${f/src/build} + # Converts path/file.md to path/file/index.html (index.md just changes to index.html) + case $f in + *index.md) f=${f/%.md/.html} ;; + *) f=${f/%.md//index.html} ;; + esac + [[ -e "$f" ]] || { echo "$f" missing; } +done < <(find tmp/Guldasta.jl/docs/ -type f -name '*.md' -print0) | grep -v missing diff --git a/.github/workflows/TestGeneratedPkg.yml b/.github/workflows/TestGeneratedPkg.yml index af54c535..6632441f 100644 --- a/.github/workflows/TestGeneratedPkg.yml +++ b/.github/workflows/TestGeneratedPkg.yml @@ -79,15 +79,4 @@ jobs: julia --project=tmp/Guldasta.jl/docs --eval 'using Pkg; pkg"dev tmp/Guldasta.jl"' \ -L tmp/Guldasta.jl/docs/make.jl - name: Check docs generation - run: | - find tmp/Guldasta.jl/docs - while IFS= read -r -d '' f; do - f=${f/src/build}; - # Converts path/file.md to path/file/index.html (index.md just changes to index.html) - case $f in - *index.md) f=${f/%.md/.html};; - *) f=${f/%.md//index.html};; - esac - [[ -e $f ]] || { echo $f missing; } - done < <(find tmp/Guldasta.jl/docs/ -type f -name '*.md' -print0 ) | grep missing - [[ $? -ne 0 ]] + run: bash -e .github/scripts/verify-docs-build-files.sh