Skip to content

Commit

Permalink
Configuration flag for viewer's showImported
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Feb 8, 2024
1 parent 6f8c684 commit 5856301
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/validate-and-process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ on:
type: string
description: Path where to deploy the viewer
default: '.'
viewer_show_imported:
type: boolean
description: |
Whether the deployed building blocks viewer will show imported building
blocks as well as local ones
default: false
secrets:
sparql_username:
description: SPARQL Graph Store Protocol user name for push authentication
Expand Down Expand Up @@ -183,6 +189,7 @@ jobs:
window.bblocksRegister = '${{ format('https://{0}.github.io/{1}/{2}', github.repository_owner, github.event.repository.name, inputs.register_file) }}';
window.bblocksViewer = {
title: $(jq '.name // "${{ github.event.repository.name }}"' < "$REGISTER_FILE"),
showImported: {{ inputs.viewer_show_imported && 'true' || 'false' }},
};
EOF
if [ -f GIT_INFO ]; then
Expand Down

0 comments on commit 5856301

Please sign in to comment.