Skip to content

Commit 5856301

Browse files
committed
Configuration flag for viewer's showImported
1 parent 6f8c684 commit 5856301

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

+7
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ on:
6565
type: string
6666
description: Path where to deploy the viewer
6767
default: '.'
68+
viewer_show_imported:
69+
type: boolean
70+
description: |
71+
Whether the deployed building blocks viewer will show imported building
72+
blocks as well as local ones
73+
default: false
6874
secrets:
6975
sparql_username:
7076
description: SPARQL Graph Store Protocol user name for push authentication
@@ -183,6 +189,7 @@ jobs:
183189
window.bblocksRegister = '${{ format('https://{0}.github.io/{1}/{2}', github.repository_owner, github.event.repository.name, inputs.register_file) }}';
184190
window.bblocksViewer = {
185191
title: $(jq '.name // "${{ github.event.repository.name }}"' < "$REGISTER_FILE"),
192+
showImported: {{ inputs.viewer_show_imported && 'true' || 'false' }},
186193
};
187194
EOF
188195
if [ -f GIT_INFO ]; then

0 commit comments

Comments
 (0)