Skip to content

Commit 5ddf8df

Browse files
committed
Fix config_file path resolution after cd in deploy-viewer step
The yq call to read viewer.show-imported-depth was using a relative path for config_file, but runs after cd into the viewer directory, so it could not find bblocks-config.yaml. Prepend OLD_WD to resolve from the original working directory.
1 parent 6c782d9 commit 5ddf8df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/validate-and-process.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ jobs:
301301
BBLOCKS_SPARQL="${BBLOCKS_SPARQL:-[]}"
302302
303303
# Prefer viewer.show-imported-depth from bblocks-config.yaml if present
304-
SHOW_IMPORTED=$(yq '.viewer."show-imported-depth" // null' '${{ inputs.config_file }}' 2>/dev/null)
304+
SHOW_IMPORTED=$(yq '.viewer."show-imported-depth" // null' "${OLD_WD}/${{ inputs.config_file }}" 2>/dev/null)
305305
if [ "$SHOW_IMPORTED" = "null" ] || [ -z "$SHOW_IMPORTED" ]; then
306306
SHOW_IMPORTED='${{ inputs.viewer_show_imported }}'
307307
fi

0 commit comments

Comments
 (0)