From 3a13486ea6dd15cef4682fc885d942e70f1ce691 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Thu, 16 Jan 2025 19:04:47 +0100 Subject: [PATCH] Add only filename to the inventory. --- .github/workflows/NightlyRelease.yml | 6 +++--- doc/requirements.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/NightlyRelease.yml b/.github/workflows/NightlyRelease.yml index 116dd43..d982f85 100644 --- a/.github/workflows/NightlyRelease.yml +++ b/.github/workflows/NightlyRelease.yml @@ -432,11 +432,11 @@ jobs: # Add asset to JSON inventory if [[ "${{ inputs.inventory-json }}" != "" ]]; then if [[ "${categories}" != "${title}" ]]; then - printf " %s\n" "adding file '${uploadFile}' with '${categories//;/ → }' to JSON inventory ..." + printf " %s\n" "adding file '${uploadFile#*/}' with '${categories//;/ → }' to JSON inventory ..." category="" jsonEntry=$(jq -c -n \ --arg title "${title}" \ - --arg file "${uploadFile}" \ + --arg file "${uploadFile#*/}" \ '{"file": $file, "title": $title}' \ ) @@ -452,7 +452,7 @@ jobs: '$inventory * {"files": $file}' \ ) else - printf " %s\n" "adding file '${uploadFile}' to JSON inventory ... ${ANSI_LIGHT_YELLOW}[SKIPPED]${ANSI_NOCOLOR}" + printf " %s\n" "adding file '${uploadFile#*/}' to JSON inventory ... ${ANSI_LIGHT_YELLOW}[SKIPPED]${ANSI_NOCOLOR}" fi fi diff --git a/doc/requirements.txt b/doc/requirements.txt index ede9f77..e34a515 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -15,5 +15,5 @@ sphinxcontrib-mermaid ~= 1.0 autoapi >= 2.0.1 sphinx_design ~= 0.6.1 sphinx-copybutton >= 0.5.2 -sphinx_autodoc_typehints ~= 2.5 +sphinx_autodoc_typehints ~= 3.0 sphinx_reports ~= 0.7