Skip to content

Commit d874d46

Browse files
committed
Update viewer_show_imported
1 parent 14ee607 commit d874d46

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

+6-5
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ on:
6666
description: Path where to deploy the viewer
6767
default: '.'
6868
viewer_show_imported:
69-
type: boolean
69+
type: number
7070
description: |
71-
Whether the deployed building blocks viewer will show imported building
72-
blocks as well as local ones
73-
default: false
71+
Level up to which the deployed building blocks viewer will show imported building
72+
blocks as well as local ones. 0 means "only local", and a negative number means
73+
"all imports".
74+
default: -1
7475
secrets:
7576
sparql_username:
7677
description: SPARQL Graph Store Protocol user name for push authentication
@@ -189,7 +190,7 @@ jobs:
189190
window.bblocksRegister = '${{ format('https://{0}.github.io/{1}/{2}', github.repository_owner, github.event.repository.name, inputs.register_file) }}';
190191
window.bblocksViewer = {
191192
title: $(jq '.name // "${{ github.event.repository.name }}"' < "$REGISTER_FILE"),
192-
showImported: ${{ inputs.viewer_show_imported && 'true' || 'false' }},
193+
showImported: ${{ inputs.viewer_show_imported }},
193194
};
194195
EOF
195196
if [ -f GIT_INFO ]; then

0 commit comments

Comments
 (0)