Skip to content

Commit

Permalink
Fix validation report URL
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Jan 10, 2024
1 parent c72ae90 commit 0431998
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/validate-and-process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ jobs:
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 // "${{ github.event.repository.name }}" ' < "${{ inputs.register_file }}"),
title: $(jq '.name // "${{ github.event.repository.name }}"' < "${{ inputs.register_file }}"),
};
EOF
- name: Setup Pages
Expand Down
4 changes: 2 additions & 2 deletions ogc/bblocks/postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ def do_postprocess(bblock: BuildingBlock, light: bool = False) -> bool:
full_validation_report_url = None
if not steps or 'tests' in steps:
print(f"Writing full validation report to {test_outputs_path / 'report.html'}", file=sys.stderr)
if test_outputs_base_url:
full_validation_report_url = test_outputs_base_url + 'report.html'
if base_url:
full_validation_report_url = f"{base_url}{os.path.relpath(Path(test_outputs_path).resolve(), cwd)}/report.html"
report_to_html(json_reports=validation_reports, report_fn=test_outputs_path / 'report.html')

if output_file and (not steps or 'register' in steps):
Expand Down

0 comments on commit 0431998

Please sign in to comment.