From 7d282c2fcb06e052a41a259d0dfe1ff59645f843 Mon Sep 17 00:00:00 2001 From: Alejandro Villar Date: Wed, 10 Jan 2024 12:58:23 +0100 Subject: [PATCH] Configure viewer title --- .github/workflows/validate-and-process.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/validate-and-process.yml b/.github/workflows/validate-and-process.yml index 10a8fbd..d601bab 100644 --- a/.github/workflows/validate-and-process.yml +++ b/.github/workflows/validate-and-process.yml @@ -150,6 +150,9 @@ jobs: sed -i -r 's,/@BASE_URL@/,/${{ github.event.repository.name }}/,g' index.html 404.html assets/*.js assets/*.css cat << EOF > config.js window.bblocksRegisters = ['${{ format('https://{0}.github.io/{1}/{2}', github.repository_owner, github.event.repository.name, inputs.register_file) }}']; + window.bblocksViewer = { + title: '$(jq .name < "${{ inputs.register_file }}")', + }; EOF - name: Setup Pages if: ${{ github.event.repository.has_pages && !inputs.skip-pages }}