From b85fbca7ce522b2faf6e57da879098f54a3955fe Mon Sep 17 00:00:00 2001 From: Altan Orhon Date: Mon, 30 Oct 2023 19:14:36 -0700 Subject: [PATCH] Updated workflow to acco,modate modularized --- .github/workflows/build-documentation.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml index a6d4a6c..4f46222 100644 --- a/.github/workflows/build-documentation.yml +++ b/.github/workflows/build-documentation.yml @@ -21,8 +21,8 @@ jobs: echo "Changes detected in hyakvnc, .build/README.j2.md, or .github/workflows/build-documentation.yml" python3 -m pip install jinja-cli pushd .build/ - sed -E '/^HYAKVNC_.*#\s*%%/!d; s/=.*(#\s*%%)/:/g; s/(^.)/- \1/g' ../hyakvnc > config.inc.md - for x in create status show stop config update install; do ../hyakvnc help "$x" | sed -E '1 s/(.*)/\n### \1\n/; 2 s/^$/```text/' | pr -e4 -t && echo '```'; done > usage.inc.md + sed -E '/^HYAKVNC_.*#\s*%%/!d; s/=.*(#\s*%%)/:/g; s/(^.)/- \1/g' ../scripts/_lib.bash > config.inc.md + for x in create status show stop config update install; do ../hyakvnc help "$x" 2>/dev/null | sed -E '1 s/(.*)/\n### \1\n/; 2 s/^$/```text/' | pr -e4 -t && echo '```'; done > usage.inc.md jinja -D github_repository "${{ github.repository }}" -D github_ref_name "${{ github.ref_name }}" README.j2.md | sed 's/^.*.*$//g' > ../README.md jinja -D github_repository 'https://github.com/${{ github.repository }}' -D github_ref_name '${{ github.ref_name }}' install.j2.sh -o ../install.sh popd